Hi Chuck,
Chuck Schick wrote:
We use diskkeeper - anyone have other
recommendations?
Attached is a vbs script that will defrag all your hard drives and
record results to the application log. I run it nightly with a scheduler
at 3am...
[I use it on Windows 2003; not sure it it will work on any other
versions of Windows]
-Nick
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim fso, d, dc
Set fso = CreateObject("Scripting.FileSystemObject")
Set dc = fso.Drives
For Each d in dc
If d.DriveType = 2 Then
return = WshShell.Run("c:\windows\system32\defrag.exe " & d, 1, TRUE)
End If
Next
Set WshShell = Nothing