Windows 2000 Defrag

Example scripts and tips (replaces Old Scripts & Tips archive)

Moderators: Dorian (MJT support), JRL, Phil Pendlebury

Post Reply
User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Windows 2000 Defrag

Post by Marcus Tettmar » Wed Jan 23, 2002 12:00 am

Contributed By: John Oathout [email protected]
Submitted On: 23/01/02

Save yourself a few keystrokes and add the ability to schedule automatic defrags through Macro Scheduler in Windows 2000 professional with this script.


ExecuteFile>C:\WINNT\system32\dfrg.msc
WaitWindowOpen>Disk Defragmenter
Press ALT
Send Character/Text>A
Press Enter
WaitWindowOpen>Analysis Complete
Press ALT
Send Character/Text>d

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts