Articles

Temp folder

April 4, 2005 at 10:17:10
Specs: WinXP, 212 GB

what will happen if i delete everything in my C:\Documents and Settings\user\Local Settings\Temp folder?

See More: Temp folder

Report •


#1
April 4, 2005 at 10:23:57

As long as you're not actually storing data in there (documents, etc), you can safely delete anything in there after a reboot.

Report •

#2
April 4, 2005 at 11:18:17

Dont worry...u r all good...like Jennifer said...if u save everyting...u could delete temp & temp internet file folder.

Progressing Slowly but pretty effective


Report •

#3
April 4, 2005 at 11:56:23

anything in these foldrs are safe to delete.

C:\Documents and Settings\Mobile Horse\Cookies
C:\Documents and Settings\Mobile Horse\Local Settings\History
C:\Documents and Settings\Mobile Horse\Local Settings\Temp
C:\Documents and Settings\Mobile Horse\Local Settings\Temporary Internet Files
C:\TEMP
C:\Windows\Temp

Of course the "Mobile Horse" will be changed with your username. This also the same for all users.
Another note. IN these directories, you may not be able to delete certain files. This is because they are in use at the time. Just skip over them.

------
Get FireFox You'll be happy you did.


Report •

Related Solutions

#4
April 4, 2005 at 11:57:57

Also if you like. If you use XP Pro, I have instructions on how to make these directories empty everytime you boot your computer.

If you Like I'll post em.

------
Get FireFox You'll be happy you did.


Report •

#5
April 4, 2005 at 12:28:37

HI Buzz,

Just go ahead and post the instruction - I'm fascinated with what you do at work :-)

Oh, my bad I should have thank you for what you have posted in this thread (re: internet restriction for kids (forced logout)). Also in this same thread Craig posted back saying that the winexit.scr file insists on being reconfigured every time that its called from a scheduled task :-(

i_XpUser


Report •

#6
April 4, 2005 at 19:03:14

Ok heres another Tutorial for ya..
This will clean up all temp files from users upon boot up.

**Note for Computing.net users. I can't attach files here so email me and I'll shoot over the files if you like. At the bottom is the contents of the files.

Use the attached files and extract to your c:\windows\system32
Deltree.exe and cleanup.bat needs to be in your system32 folder!!!

you need to edit some files.
Open cleanup.bat in notepad
Heres what it looks like:

cd\

:Local service
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Tempor~1" > NUL
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Temp\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Tempor~1\Content.IE5" > NUL

:username cleanup
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\Temp\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\History\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\Tempor~1\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\NetHood\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\Recent\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\Cookies\*.*" > NUL


Now change the "username" to your username that you want cleaned.
If you have more than one user account copy the block that is under :username cleanup and paste it
under the existing and replace with the 2nd username. 3rd username and so on.. I have 8 users on mine at work.

XP Pro users. Lets make this run before windows starts.
Click, "Start" "Run" type gpedit.msc

navigate to:
Computer Confuguration >>> Windows Settings >>> Scripts (startup/Shutdown)
Then double click on the Start up in the right hand pane.
Click on the "Add" button, Then the "Browse" Navigate to c:\windows\system32\cleanup.bat
Select that file, Click "OK" Click "Apply" then "OK"

You can now exit the Groups Policies.


XP HOME USERS:
You dont have Group Policy editor so we'll attack this a different way.

Easiest way is to double click onthe cleanup.reg file and enter that info in the registry file I included in the zip archive.
Or you can manually do it..
Click on: "Start" "Run" type regedit
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Right click in the right pane and select "New" String name it Cleanup then right click and go to Modify.
enter the path to the Cleanup.bat c:\windows\system32\cleanup.bat

your all set.

Notes:
Every time you start your computer the cleanup script will run and clear out all temporary files.
If you wish to do this manually simply click the start, run and type cleanup. You'll see a box pop
up and the script will run and close.

File Contents: you can make these in not pad then renaming it.


***cleanup.bat***
cd\

:Local service
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Tempor~1" > NUL
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Temp\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Tempor~1\Content.IE5" > NUL

:username cleanup
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\Temp\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\History\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\Tempor~1\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\NetHood\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\Recent\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\Cookies\*.*" > NUL

***cleanup.reg***
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"Cleanup"="c:\\windows\\system32\\cleanup.bat"

***DELTREE.EXE***
You'll have to download this or email me for a copy of this

Once again, Send me an email and I'll send this tip with the three files you need.


------
Get FireFox You'll be happy you did.


Report •

#7
April 4, 2005 at 19:19:13

Notes:

In the zip archive I'll send you:
Three files:
DELTREE.exe (an old Dos file)
cleanup.bat (my own delete script)
cleanup.reg (my own registry script)

This scipting will delete all temporary files upon startup. Or you can manually run this scripts.

------
Get FireFox You'll be happy you did.


Report •


Ask Question