Solved

Delete temp files from users on windows 8 server

Posted on 2013-11-20
5
514 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 55

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

696 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