Sub sbDefrag() set WshShell = CreateObject("WScript.Shell") Dim WshShell, Result, objFSO, objNetwork Result = WshShell.Popup("Weekly Computer Maintenance Is Being Preformed Please Do Not Log onto this Machine! The I.T. Department.", 10, "Title", 65) If result = 1 or Result = -1 THEN set WshShell = CreateObject("WScript.Shell") 'Runs a clean up on the C: Drive WshShell.Run "cleanmgr /sagerun:100" WScript.Sleep 5000 'Cleans out the WIndows XP Prefetch directory Const DeleteReadOnly = True Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.DeleteFile("C:\WINDOWS\Prefetch\*.*"), DeleteReadOnly objFSO.DeleteFile("C:\WINDOWS\Prefetch\*"), DeleteReadOnly
|need to know how to pass variable with a semicolon within the value from vbscript to vbs||4||31|
|Access VBA script to unzip a SQL Server backup file to a selected folder||12||45|
|Need help to rewrite script||3||64|
|Fix it so that it will not have end target date before start date.".||2||25|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
18 Experts available now in Live!