The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!
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
Join the community of 500,000 technology professionals and ask your questions.