Script to delete temp file and Prefetch

Open Notepad and Save below code then save it as "del.vbs " and copy the file to startup.

'This Script is used to Deleted Prefetch File
'Created By Manoj Kumar Singh
Dim fso,strEnv
Set fso = CreateObject("scripting.filesystemobject
")
set WshShell = CreateObject("wscript.Shell")
strEnv = wshshell.ExpandEnvironmentStrings("%temp%")
fso.DeleteFile(strEnv+"\*.*")
fso.DeleteFolder(strEnv+"\*.*")
fso.DeleteFile("C:\WINDOWS\Prefetch\*.*"
)
 

No comments:

Post a Comment