i want clean up all temporary files using script can any one help me out.
Answer Summary:
Complete script given at: http://gallery.technet.microsoft.com/scriptcenter/Delete-Temp-files-2f2438f1
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

3
find the link for proper script to delete all windows temp files:-

http://gallery.technet.microsoft.com/scriptcenter/Delete-Temp-files-2f2438f1
Answered 04/05/2012 by: pratikpawar
Senior Yellow Belt

Please log in to comment

Answers

1
Set fso = CreateObject("Scripting.FileSystemObject")
Path="PATH to folder"
Path1 = Path & "\*.*"
if fso.FileExists(Path3) then
fso.DeleteFile Path1
end if

Hope this helps.
Answered 04/04/2012 by: akki
Fourth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share