Link to home
Start Free TrialLog in
Avatar of jonnyfunfun
jonnyfunfun

asked on

Run scandisk and defrag from command line

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?
ASKER CERTIFIED SOLUTION
Avatar of Joel Miller
Joel Miller
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of netwiz562
netwiz562

---- CLEAN UP ----

jonnyfunfun,
No comment has been added lately (389 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: [ Award points to jmiller47 ]

Please leave any comments here within the next seven days.

¡PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

------------------------------
Rajiv Makhijani
EE Cleanup Volunteer