• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

Delete temp files from users on windows 8 server

Hi
I need a vb script that will clear all the temp files for all users on windos 8 server

%temp%
0
theology
Asked:
theology
2 Solutions
 
SeanSystem EngineerCommented:
This would be for a batch file:
FOR /D %%p IN ("C:\Temp\*.*") DO rmdir "%%p" /s /q

you can also change "C:\Temp\*.*" to "%tmp%\*.*" if you want to get the appdata temp folder
0
 
Sikhumbuzo NtsadaSenior IT TechnicianCommented:
I use this script, I suggest you open it and understand what it's doing, then test it.
DelTemFiles.vbs
0
 
theologyAuthor Commented:
Thank you for your help it works 1q111
0
 
McKnifeCommented:
Hi Santasi24.

Does your script work on 8? The path for TIF has changed.
0
 
Sikhumbuzo NtsadaSenior IT TechnicianCommented:
We have Windows 7 only, I will get a test box and see and revert back to you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now