Solved

Delete temp files from users on windows 8 server

Posted on 2013-11-20
5
508 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 53

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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now