Groups > Miscellaneous > SecureComp > Re: a bat file for temp cleanup




Re: a bat file for temp cleanup

Re: a bat file for temp cleanup
Mon, 12 May 2008 16:12:26 +010
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\history
rd /s/q locals~1\temp\history
rd /s/q locals~1\temp
md locals~1\Temp

**********************

Save as "XP.CMD" without the quotes, save it in your startup folder,
it will 
run in a dos box when you boot up into Windows.

-- 
Padraig & purrs from Sassy >^..^< & Ms Tizzy >^..^<

Pictures of Sassy here:
http://www.moggies.co.uk/articles/sassy.html

Pictures of Ms Tizzy here:
http://www.moggies.co.uk/2004/july_2004_1.html

Cat news, pictures and stories accepted...
"Are you owned by a cat?"
Moggies - Home of the Online Cat Guide, animal news, free helpfiles &
programs. Plus lots more for cat lovers everywhere.
E-Mail: padraig@moggies.co.uk
Web: http://www.moggies.co.uk
NO SPAM tolerated.

Post Reply
Re: a bat file for temp cleanup
Mon, 12 May 2008 18:22:37 +010
You can modify the xp.cmd file for your specific use.

-- 
Remove "zzzz" to replay to sender.

Cat news, pictures and stories accepted...
"Are you owned by a cat?"
Moggies - Home of the Online Cat Guide, animal news, free helpfiles &
programs. Plus lots more for cat lovers everywhere.

Web: http://www.moggies.co.uk
NO SPAM tolerated.

Post Reply
a bat file for temp cleanup
Tue, 13 May 2008 00:36:15 +100

C:\WINDOWS\Temp
C:\Documents and Settings\Administrator\Local Settings\Temp
C:\Documents and Settings\All Users\Application Data\TEMP
C:\Documents and Settings\xxxx\Local Settings\Temp
C:\Documents and Settings\Default User\Local Settings\Temp
C:\Documents and Settings\zzzz\Local Settings\Temp
C:\WINDOWS\pchealth\helpctr\Temp
C:\Documents and Settings\xxxx\Application Data\OfficeUpdate12\Temp

Could someone please write me a .bat file (I think) to run which will 
clean the above temp folders.

Post Reply
Re: a bat file for temp cleanup
Tue, 13 May 2008 02:20:50 +010
This one:

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

-- 
Remove "zzzz" to replay to sender.

Cat news, pictures and stories accepted...
"Are you owned by a cat?"
Moggies - Home of the Online Cat Guide, animal news, free helpfiles &
programs. Plus lots more for cat lovers everywhere.

Web: http://www.moggies.co.uk
NO SPAM tolerated.

Post Reply
Re: a bat file for temp cleanup
Tue, 13 May 2008 10:11:42 +100
Moggies wrote:
> 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\history
> rd /s/q locals~1\temp\history
> rd /s/q locals~1\temp
> md locals~1\Temp
> 
> **********************
> 
> Save as "XP.CMD" without the quotes, save it in your startup
folder, it will 
> run in a dos box when you boot up into Windows.
> 

startup folder as in:
C:\Documents and Settings\username\Start Menu\Programs\Startup
C:\Documents and Settings\Administrator\Start Menu\Programs\Startup
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
C:\Documents and Settings\Default User\Start Menu\Programs\Startup

Post Reply
about | contact