http://www.filesoup.com/forum/lofive...hp/t69663.html

The portion of the path where your logon name is required: if you get that wrong you could be in some trouble.
The quotations as in:
"C:\Documents and Settings\logon name\Local Settings\Temp"
are optional, as is the c: on the top as long as your pathways are true.

Substitute [your username] with your logon name or whetever is in this portion of the pathway that identifies your computer.


The "del /q /s /f *.*" command tells XP or 2K to DELete everything (*.*) in that directory, to do so in Quiet mode ("/q") with no prompts, to Force ("/f") the deletion even of read-only files, and also to work on any subdirectories ("/s") beneath the target directory.

Replace "C:\Documents and Settings\logon name\"

With "%USERPROFILE%" and you can't get it wrong.

There are other handy variables you can use. See a list by typing 'SET' at a cmd prompt

copy/paste into notepad save as delete.bat

c:
cd C:\"Exact path to the folders & contents you want to delete" (Temp)
del /q /s /f *.*
cd C:\"Exact path to the folders & contents you want to delete" (Temporary Internet Files)
del /q /s /f *.*
cd C:\"Exact path to the folders & contents you want to delete" (cookies)
del /q /s /f *.*
cd C:\"Exact path to the folders & contents you want to delete" (Recent)
del /q /s /f *.*
cd C:\"WINDOWS\Temp"
del /q /s /f *.*
cd C:\"WINDOWS\Prefetch"
del /q /s /f *.*
cleanmgr /sagerun:99

Leave the "quotation marks" in.