*.tmp files in C:\Documents and Settings\...

T

Tom

WinXP Pro SP2 all MS updates
Laptop
80GB primary/65GB used; 160GB secondary USB/135GB used (both ATA, not SATA)
C:\Documents and Settings\UserID.DomainName\Local Settings\Temp

I've recently noticed about 100MB of *.tmp files and others in the above set
of directories. Many of these files are dated before 2008 or essentially
before the last cold boot into the WinXP OS. Is it ok to delete these files
en-mass? Like ALL of them? What's the pro/con on it besides making me feel
like I've recovered 100MB of disk space?
As a general question, what files under C:\...\Local Settings\Temp\ should I
keep?
[I have some directories named: _SkypeIEToolbar_Cache; Acrobat Distiller 6;
Adobe; CitrixLogs; ...; outlook logging; wz5144 (for WinZip 11.1 I think)
I also have the Local Settings\Temporary Internet Files directory...
TIA!
 
A

Andrew E.

Try run,type:%Temp% go to edit,select all,delete all,close out.Return to
run,
type:C:\WINDOWS\Temp Edit,select all,delete all,close.In windows Temp,not
all can be delete (some in use),click ok,exit,empty recycle-bin..All these
files
are obsolete,as they were/are installation files that are no longer used..The
risk,none,actually microsoft recommends this proccedure.
 
F

Frank Saunders MS-MVP IE,OE/WM

Tom said:
WinXP Pro SP2 all MS updates
Laptop
80GB primary/65GB used; 160GB secondary USB/135GB used (both ATA, not
SATA)
C:\Documents and Settings\UserID.DomainName\Local Settings\Temp

I've recently noticed about 100MB of *.tmp files and others in the above
set
of directories. Many of these files are dated before 2008 or essentially
before the last cold boot into the WinXP OS. Is it ok to delete these
files
en-mass? Like ALL of them? What's the pro/con on it besides making me
feel
like I've recovered 100MB of disk space?
As a general question, what files under C:\...\Local Settings\Temp\ should
I
keep?
[I have some directories named: _SkypeIEToolbar_Cache; Acrobat Distiller
6;
Adobe; CitrixLogs; ...; outlook logging; wz5144 (for WinZip 11.1 I think)
I also have the Local Settings\Temporary Internet Files directory...
TIA!

After a fresh boot you can delete them all.
 
T

Tom

Even after a reboot, won't there be temporary "this boot time" files as *.tmp?
Thanks!

Frank Saunders MS-MVP IE said:
Tom said:
WinXP Pro SP2 all MS updates
Laptop
80GB primary/65GB used; 160GB secondary USB/135GB used (both ATA, not
SATA)
C:\Documents and Settings\UserID.DomainName\Local Settings\Temp

I've recently noticed about 100MB of *.tmp files and others in the above
set
of directories. Many of these files are dated before 2008 or essentially
before the last cold boot into the WinXP OS. Is it ok to delete these
files
en-mass? Like ALL of them? What's the pro/con on it besides making me
feel
like I've recovered 100MB of disk space?
As a general question, what files under C:\...\Local Settings\Temp\ should
I
keep?
[I have some directories named: _SkypeIEToolbar_Cache; Acrobat Distiller
6;
Adobe; CitrixLogs; ...; outlook logging; wz5144 (for WinZip 11.1 I think)
I also have the Local Settings\Temporary Internet Files directory...
TIA!

After a fresh boot you can delete them all.
 
S

Serge

Tom said:
Even after a reboot, won't there be temporary "this boot time" files as *.tmp?
Thanks!
Like Andrew E said, you will not be able to delete the files that are
being used.

You should be able to delete all the others.

Serge
 
H

Holz

WinXP Pro SP2 all MS updates
Laptop
80GB primary/65GB used; 160GB secondary USB/135GB used (both ATA, not
SATA) C:\Documents and Settings\UserID.DomainName\Local Settings\Temp

I've recently noticed about 100MB of *.tmp files and others in the
above set of directories. Many of these files are dated before 2008
or essentially before the last cold boot into the WinXP OS. Is it ok
to delete these files en-mass? Like ALL of them? What's the pro/con
on it besides making me feel like I've recovered 100MB of disk space?
As a general question, what files under C:\...\Local Settings\Temp\
should I keep?
[I have some directories named: _SkypeIEToolbar_Cache; Acrobat
Distiller 6; Adobe; CitrixLogs; ...; outlook logging; wz5144 (for
WinZip 11.1 I think) I also have the Local Settings\Temporary
Internet Files directory... TIA!
From the command prompt
del %temp% /q /f /s
in use file will not be deleted, the rest will be gone.
 
F

Frank Saunders MS-MVP IE,OE/WM

Tom said:
Even after a reboot, won't there be temporary "this boot time" files as
*.tmp?


Depending on what you have running at startup there may be a few you can't
delete. The reason for the fresh boot is that many installs will place
files in Temp to be installed during the next boot. If they aren't gone
after a fresh boot they aren't needed anymore.
 
T

Tom

Do you know if this also works in a Windows 2003 Server and Windows Vista
(Home or Ultimate/Business) environment? I need to ask before I get myself
in trouble! ;-)
Great command! Are there others that I might need or should know about?
TIA!
Tom

Holz said:
WinXP Pro SP2 all MS updates
Laptop
80GB primary/65GB used; 160GB secondary USB/135GB used (both ATA, not
SATA) C:\Documents and Settings\UserID.DomainName\Local Settings\Temp

I've recently noticed about 100MB of *.tmp files and others in the
above set of directories. Many of these files are dated before 2008
or essentially before the last cold boot into the WinXP OS. Is it ok
to delete these files en-mass? Like ALL of them? What's the pro/con
on it besides making me feel like I've recovered 100MB of disk space?
As a general question, what files under C:\...\Local Settings\Temp\
should I keep?
[I have some directories named: _SkypeIEToolbar_Cache; Acrobat
Distiller 6; Adobe; CitrixLogs; ...; outlook logging; wz5144 (for
WinZip 11.1 I think) I also have the Local Settings\Temporary
Internet Files directory... TIA!
From the command prompt
del %temp% /q /f /s
in use file will not be deleted, the rest will be gone.
 
P

Patrick Keenan

Tom said:
WinXP Pro SP2 all MS updates
Laptop
80GB primary/65GB used; 160GB secondary USB/135GB used (both ATA, not
SATA)
C:\Documents and Settings\UserID.DomainName\Local Settings\Temp

I've recently noticed about 100MB of *.tmp files and others in the above
set
of directories. Many of these files are dated before 2008 or essentially
before the last cold boot into the WinXP OS. Is it ok to delete these
files
en-mass? Like ALL of them? What's the pro/con on it besides making me
feel
like I've recovered 100MB of disk space?
As a general question, what files under C:\...\Local Settings\Temp\ should
I
keep?
[I have some directories named: _SkypeIEToolbar_Cache; Acrobat Distiller
6;
Adobe; CitrixLogs; ...; outlook logging; wz5144 (for WinZip 11.1 I think)
I also have the Local Settings\Temporary Internet Files directory...
TIA!

The easiest way to clear all of these at once is to use ccleaner:
www.ccleaner.com

It's small and fast and free.

Pay attention to the options, as it may also remove cookies that you want to
keep.

HTH
-pk
 
P

PD43

Patrick Keenan said:
The easiest way to clear all of these at once is to use ccleaner:
www.ccleaner.com

It's small and fast and free.

Pay attention to the options, as it may also remove cookies that you want to
keep.

One of the BEST features of this program is that you can CHOOSE which
cookies to keep... all the rest will be deleted during cleanup.
 
R

RemyMaza

Do you know if this also works in a Windows 2003 Server and Windows Vista
(Home or Ultimate/Business) environment?  I need to ask before I get myself
in trouble!  ;-)
Great command!  Are there others that I might need or should know about?
TIA!
Tom


Actually Yes! I run a batch file on XP, Vista, and Win2K3 boxes all
the time. I'll just post my code and you can make a batch file.
Code will start below the equals signs and will end with equal signs.
The first one is for XP and Win2k3. The #2 will be for Vista.

#1 Code for XP and Win2k3
==============================================================================================
@echo off
cls
title Clean My PC for Vista By Matt Bramer
color 0E

echo Start Time is %time%

Echo ********* Removing All Temp Files and Cookies for IE
*************
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

Echo.
Echo Removal of All Temp Files and Cookies for IE has Completed!

Echo.
Echo.
Echo.


Echo ********* Removing PC Temporary Files **********
rmdir /S /Q "%userprofile%\Local Settings\Temp" 2>Nul
mkdir "%userprofile%\Local Settings\Temp" 2>Nul


rmdir /S /Q %windir%\Temp 2>Nul
mkdir %windir%\Temp 2>Nul


c:\windows\system32\cleanmgr.exe /dc /sagerun: 1

Echo.
Echo Removal of PC Temporary Files has Completed!

Echo.
Echo.
Echo.


Echo ********* Defragging Hard Drive **************
defrag C: -f -v

Echo Finish Time is %time%
pause

exit
==============================================================================================




#2 Code for Vista, maybe will work for Win2k8 but not tested*****
==============================================================================================
@echo off
cls
title Clean My PC for Vista By Matt Bramer
color 0E

echo Start Time is %time%

Echo.
Echo.


Echo ********* Removing All Temp Files and Cookies for IE
*************
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

Echo.
Echo Removal of Temp Files are Complete!

Echo.
Echo.
Echo.


Echo ********* Removing PC Temporary Files **********
rmdir /S /Q %userprofile%\AppData\Local\Temp 2>Nul
mkdir %userprofile%\AppData\Local\Temp 2>Nul


rmdir /S /Q %windir%\Temp 2>Nul
mkdir %windir%\Temp 2>Nul


c:\windows\system32\cleanmgr.exe /dc /sagerun: 1

Echo.
Echo Removal of PC Temporary Files Complete!

Echo.
Echo.
Echo.



Echo ********* Vista Defrag All Drives **************
defrag C: -w -f -v


echo Finish Time is %time%

Pause
exit

==============================================================================================

I hope this will save you some time in the future.

Regards,
Matt
 

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