Run scandisk and defrag from command line
Posted on 2002-06-27
Hi, I have a program that resets the computer at 3:30 in the morning and when it boots back up, it runs scandisk and defrag (the windows version). Windows 2000, however runs these out of the managment console. Is there any way that I can run scandisk and defrag from a command line? (i.e.- in windows 98, I run defrag with this command line (which is put in my program):
"c:\windows\defrag.exe c: /f /noprompt"
And I run scandisk with this one:
"c:\windows\scandskw.exe c: /n /silent"
How can I do something exactly like this in Windows 2000?