?
Solved

Delete temp files from users on windows 8 server

Posted on 2013-11-20
5
Medium Priority
?
515 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 1000 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 1000 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 56

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

800 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