We help IT Professionals succeed at work.

Clear Temp files on all machines in the file

567 Views
Last Modified: 2010-03-05
Hi,

I want to clear the windows temp files on all the machines in the file.

REgards
Sharath
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007

Commented:
       Hi Sharath
               for /f %x in (c:\computers.txt) do del \\%x\c$\windows\temp\*.* /f /s /q

Regards

Author

Commented:
Will this delete all folders also and even temp internet files.

Author

Commented:
Can you help me create a bat file
CERTIFIED EXPERT
Top Expert 2007

Commented:
         Hi Sharath
                 Windows temp files and temporary internet files are different. Above only clears temp folders. You have asked for temp internet files in past, I will workaround it additionally if I have time.

Regards

Author

Commented:
Can you help me on temp internet files also...
Hellow ill help you with that. Go to  Start--Run-- Type %tmp% --- You'll see all the temperory files. select all and delete them. thats it and dont foeget to clear your trash can on the desktop.

Rgrds
Zaheer abbas
Dsm,Tanzania,Africa

Author

Commented:
I want to do all this remotely :)

Author

Commented:
Any help....
CERTIFIED EXPERT
Top Expert 2007

Commented:
         Hi Sharath
                 Place the following line to startup script via ADS
               del "%Userprofile%\Local Settings\Temporary Internet Files\*.*" /f /s /q

Regards

Author

Commented:
Can i do this for a list of machines
CERTIFIED EXPERT
Top Expert 2007
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.