Link to home
Start Free TrialLog in
Avatar of GCI_SUPPORT
GCI_SUPPORT

asked on

windows temp file

i have found that multiple application user the c:\user\[username]\appdata\temp\ directory
so on my network, this temps folder vary between 2 gig and 22 gig of temp file

there is a way to control it, or to delete it when the session of a user start ?
Avatar of sweeps
sweeps

Creating the Batch File to Clean Temporary Files
1.Open Notepad and type the following:

cd C:\Users\%username%\AppData\Local
rmdir /S /Q Temp

2.Save the file as cleantemp.bat

3.Now double click on the file to remove your temporary files and free up space on your computer
If this doesn’t work and gives an access error, try replacing %username% with you windows login username.

Automating the Process of Deleting Temporary Files
To automate this process, so you do not need to remember to run it, do the following:

1.Right click on the batch file and select create shortcut
2.Place the shortcut in your startup folder in the start menu
Now when you log in to Windows 7, your temporary files will be deleted.

Avatar of GCI_SUPPORT

ASKER

thanks
ill give a try
by the way there is a way to do it in a login script ?
reinstall windows, i don't think is a good idea. with a park of pc
Create the script and place it on a commonly accessible network share. maybe you can set it to run with  group policy and select Computer Configuration --> Windows Settings --> Scripts --> Log-Off or Shutdown. Add a reference to the script
also please try this out on a test machine first to make sure you get the desired results.
ASKER CERTIFIED SOLUTION
Avatar of sweeps
sweeps

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you!
thanks sweep everything is working fine