I must be half retarted because I can't get either one of these to work.

NTDOC: I uncommented everything but was unsure which 0 to make a 1 or which $Del needed a 1.

Jadewith: Your code asked me y/n to delete, but I couldn't get it to delete anything. I tried changing rd $file to shell '%ComSpec% /c rd /s /q "$file" >nul 2>nul' but still no luck.