Deleting temp files

G

Gordon Biggar

I recently deleted some 2,000+ files from my Windows\Temp folder. I
remember - back in my Windows 2000 days - I set up a batch file that
executed on boot-up from the Start-up folder that deleted such files. What
would the equivalent procedure be for Vista Home Premium (64-bit)? Am I
able to duplicate that former procedure? Are there other temp files that
are created that I should be aware of for deleting purposes?

If I am unable to locate that former batch file, what is the appropriate
command line for deletions?

Gordon Biggar
Houston, Texas
 
B

Badger

Try downloading - CCLEANER
It will delete all kinds of temp files and others.
You can also set it up to run at startup.
 
G

Gordon Biggar

I note that the application does some registry cleaning, which procedure a
number of folks in this forum recommend strongly against. Can this be
bypassed?

GB
 
N

Nil

I recently deleted some 2,000+ files from my Windows\Temp folder.
I remember - back in my Windows 2000 days - I set up a batch file
that executed on boot-up from the Start-up folder that deleted
such files. What would the equivalent procedure be for Vista Home
Premium (64-bit)? Am I able to duplicate that former procedure?
Yes.

Are there other temp files that are created that I should be aware
of for deleting purposes?

Yes, lots. It's safest to use Windows' own Disk Cleanup utility:

<http://windows.microsoft.com/en-US/windows-vista/Delete-files-using-Disk-Cleanup>

Ccleaner can find more stuff you might consider expendible.

<http://www.piriform.com/ccleaner>
 
G

Gordon Biggar

I am not familiar with the Prefetch folder. It has about 200 files in it,
all created within the last few days, but nothing older than that. Somehow,
these files must be self-deleting, or deleted on a time basis.?

GB
 
C

Camper

Gordon Biggar said:
I note that the application does some registry cleaning, which procedure a
number of folks in this forum recommend strongly against. Can this be
bypassed?

GB

Yes.
Camper
 
B

+Bob+

I note that the application does some registry cleaning, which procedure a
number of folks in this forum recommend strongly against. Can this be
bypassed?

GB

You can easily set the options in ccleaner to leave the registry as
is. It will clean out lots of stuff you don't really need. Be sure to
pay attention to the settings if you don't want to remove things like
MSIE history and such.
 
K

Kevin John Panzke

I recently deleted some 2,000+ files from my Windows\Temp folder.  I
remember - back in my Windows 2000 days - I set up a batch file that
executed on boot-up from the Start-up folder that deleted such files.  What
would the equivalent procedure be for Vista Home Premium (64-bit)?  Am I
able to duplicate that former procedure?  Are there other temp files that
are created that I should be aware of for deleting purposes?

If I am unable to locate that former batch file, what is the appropriate
command line for deletions?

Gordon Biggar
Houston, Texas

TRY USING CCLEANER (USED 2 BE CALLED C*** CLEANER) FROM HTTP://CCEANER.COM/
IT WORKS WITH JUST ABOUT ALL MICROSOFT OPERATING SYSTEMS (I DON'T KNOW
IF IT WORKS WITH WINDOWS 2000 AND OLDER, HOWEVER), AND IT IS AD-WARE
AND SPY-WARE FREE, JUST FYI!
 
K

Kevin John Panzke

TRY USING CCLEANER (USED 2 BE CALLED C*** CLEANER) FROM HTTP://WWW.CCLEANER.COM/
IT WORKS WITH JUST ABOUT ALL MICROSOFT OPERATING SYSTEMS (I DON'T KNOW
IF IT WORKS WITH WINDOWS 2000 AND OLDER, HOWEVER), AND IT IS AD-WARE
AND SPY-WARE FREE, JUST FYI!

CORRECTED WEBSITE LINK.
 
N

Nil

Does %temp% refer to any temp folder, or is this a specific
folder?

One specific folder. Type SET at a command prompt to see where it is.
You will also find a TMP variable that might point to a different
location.
 
N

Nil

I use ccleaner and you dont have to use the registry cleaner bit
if you dont want to, its a separate procedure.
Re deleting prefetch folders, ccleaner deletes old ones (tho not
sure how old) and Ive been told that you shouldnt delete the
recent ones.

There's really not much good reason to delete the Prefetch files unless
you are about to defrag or something. They will just be re-generated by
Windows at its first opportunity.
 
G

Gene E. Bloch

Yes, that's what I clearly said. Why did you bother to repeat it?

OTOH, I don't think I have ever seen %tmp% differ from %temp%...even on
other OSes.

Just sayin'.
 
G

Guest

Remarks
The GetTempPath function checks for the existence of environment variables
in the following order and uses the first path found:

The path specified by the TMP environment variable.
The path specified by the TEMP environment variable.
The path specified by the USERPROFILE environment variable.
The Windows directory.
Note that the function does not verify that the path exists.


Windows Me/98/95: If TMP and TEMP are not set to a valid path, GetTempPath
uses the current directory.
 
G

Gene E. Bloch

Remarks
The GetTempPath function checks for the existence of environment variables
in the following order and uses the first path found:

The path specified by the TMP environment variable.
The path specified by the TEMP environment variable.
The path specified by the USERPROFILE environment variable.
The Windows directory.
Note that the function does not verify that the path exists.


Windows Me/98/95: If TMP and TEMP are not set to a valid path, GetTempPath
uses the current directory.

And in which language is that function found? It seems not to be an exe
file on my computer nor a built-in command to the 'shell'....
 

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