Scan and Defrag (VBScript)
- Details
- Category: Scripts and Code
- Published on Tuesday, 08 November 2011 09:02
- Written by Christian Dunn
This script performs a chkdisk scan and a defrag of the current machine.
Option Explicit
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "scandskw /all /n /silent",1,true
WshShell.Run "defrag /all /noprompt",1,true