Delete temp files on start, program

T

Tommy D

I'm looking for a program that will run on startup that will clean out all
temp files. When I Google this, I get all sorts of things which I don't
have confidence in. I am running on Windows xp pro.

I would appreciate a recommendation on an app to run on start up. For now
I've been using TFC which I run once the computer is up and running.
However, it then restarts the system.


TIA
 
B

Bruce Hagen

Tommy D said:
I'm looking for a program that will run on startup that will clean out
all
temp files. When I Google this, I get all sorts of things which I don't
have confidence in. I am running on Windows xp pro.

I would appreciate a recommendation on an app to run on start up. For
now
I've been using TFC which I run once the computer is up and running.
However, it then restarts the system.


TIA


CCleaner:
http://www.ccleaner.com/

I would just stay away from any registry cleaning though.
 
K

Ken Blake, MVP

I'm looking for a program that will run on startup that will clean out all
temp files. When I Google this, I get all sorts of things which I don't
have confidence in. I am running on Windows xp pro.

I would appreciate a recommendation on an app to run on start up. For now
I've been using TFC which I run once the computer is up and running.
However, it then restarts the system.



Disk Cleanup, which is part of Windows.
 
T

Terry R.

On 4/26/2010 2:01 PM On a whim, Tommy D pounded out on the keyboard
I'm looking for a program that will run on startup that will clean out all
temp files. When I Google this, I get all sorts of things which I don't
have confidence in. I am running on Windows xp pro.

I would appreciate a recommendation on an app to run on start up. For now
I've been using TFC which I run once the computer is up and running.
However, it then restarts the system.


TIA

Hi Tommy,

You can create a batch file and use commands like:

del /s /q %temp%\*.*

That will remove all files in the temp folders/subfolders, but it does
not remove the empty sub-folders.

You could also use:

rd /s /q %temp%
md %temp%

but it's a little strange to me to have to resort removing the folder
and re-creating it in order to empty it.

I use an old Win9x utility called deltree.exe that works fine in later
versions of Windows. You can find it easily using Google, and the command:

deltree.exe /y %temp%

empties the temp folders without removing the folder. If you have two
different locations for your TEMP or TMP variables, you can use:

deltree.exe /y %temp%
deltree.exe /y %tmp%

One location to download the file is here:
http://www.uv.tietgen.dk/staff/mlha/download/dos/#DELTREE

Once you have created the batch file and tested it, you can add the
batch file using gpedit.msc (Start, Run, gpedit.msc, click OK) in
Computer Configuration/Windows Settings/Scripts/Shutdown. Add the file
and it will be executed on Shutdown.

Terry R.
 
T

Terry R.

On 4/27/2010 12:14 PM On a whim, (e-mail address removed)
pounded out on the keyboard
I created a shortcut to the "temporary internet files" folder (IE
Cache). Put the shortcut on the desktop so it's quick to access.
Then I just go there every day or so, and choose ''select all files",
then DELETE. Browser cache files are the bulk of useless clutter.
I never save cookies or any of that stuff.

That folder isn't the same as the TEMP folders the OP asked about. But
you could create the same batch file for the TIF folder also. Why do
something manually that you can have done automatically?


Terry R.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top