Solved

Delete temp files from users on windows 8 server

Posted on 2013-11-20
5
510 Views
Last Modified: 2013-11-21
Hi
I need a vb script that will clear all the temp files for all users on windos 8 server

%temp%
0
Comment
Question by:theology
5 Comments
 
LVL 9

Assisted Solution

by:Sean
Sean earned 250 total points
ID: 39662940
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
 
LVL 17

Accepted Solution

by:
Sikhumbuzo Ntsada earned 250 total points
ID: 39664986
I use this script, I suggest you open it and understand what it's doing, then test it.
DelTemFiles.vbs
0
 

Author Closing Comment

by:theology
ID: 39666249
Thank you for your help it works 1q111
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39667188
Hi Santasi24.

Does your script work on 8? The path for TIF has changed.
0
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 39667250
We have Windows 7 only, I will get a test box and see and revert back to you.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question