Hello Mazin, "But, we don't need to re-create %TEMP% folder again. The slash after %TEMP%\ means deleting objects inside TEMP folder, not the TEMP folder itself." I dont agree with you. Unfortunately, with or without "\" the directory passed in parameter to RD /S is deleted itself. (Tested with Win XP) used with /Q, no question is asked. Good Continuation and all my respect mazin.