Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

startup temp cleanup batch file

Status
Not open for further replies.

vbportal

Technical User
Nov 7, 2002
53
HR
Hi,
I'm running XP Home (if it makes any diff)
I found the following code to do startup cleanup
of temp files and have included it in the startup directory.
The file shows up in startup menu and everything seems
to work BUT how do I get cmd.exe window to stay open
so that I can see what has happened ?

I tried adding ECHO on and ECHO in front of the lines as well as starting cmd but it didn"t work (I'm just not
getting the hang of this)


xp.cmd code:

cd %homedrive%%homepath%
rd /s/q locals~1\tempor~1
rd /s/q locals~1\temp
rd /s/q cookies
rd /s/q temp
rd /s/q locals~1\temp\history
rd /s/q locals~1\temp
md locals~1\temp

BR,Vjeko
 

Put the word 'pause' at the very end of the batch file.

This will keep the command shell open until you hit a key to continue.

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top