Scan and Defrag (VBScript)

AddThis Social Bookmark Button

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