View Full Version : Script to delete %temp$ (All)
Novoadmn
03-16-2004, 05:32 PM
Anyone have a script to delete the files from %temp%?
apastuhov
03-21-2004, 02:39 AM
del /q %temp%\.
Novoadmn
03-22-2004, 09:37 AM
You mean from a batch file or through a vbscript?
I was wondering about a windows script mostly.
Novoadmn
03-31-2004, 09:11 AM
Anybody out there?
meagain35
04-22-2004, 11:46 AM
Here is a script from the sysadmins scripting guide.
Const DeleteReadOnly = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("C:\Temp\*.*"), DeleteReadOnly
objFSO.DeleteFile("C:\Temp\*"), DeleteReadOnly
Novoadmn
05-20-2004, 12:40 PM
Thanks!
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.