Solved

Run scandisk and defrag from command line

Posted on 2002-06-27
2
306 Views
Last Modified: 2010-04-13
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?
0
Comment
Question by:jonnyfunfun
2 Comments
 
LVL 7

Accepted Solution

by:
jmiller47 earned 50 total points
ID: 7114523
There is no scandisk in Windows 2000. Instead use:
CHKDSK C: /F

For automated defragmentation you will need a 3rd party software or you can download this simple VBScript posted below.

You can then run the VBScript from the command line or schedule it to run.


http://www.pc-pipeline.com/modules.php?op=modload&name=Downloads&file=index&req=viewdownloaddetails&lid=5&ttitle=Automate_Windows_2000_Defragmentation
0
 
LVL 1

Expert Comment

by:netwiz562
ID: 8963468
---- 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
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Robocopy - migrate user shares access denied 6 1,524
How to change folder redirection to a new server 5 743
Migrate Windows NT to Windows 2003 2 518
Pskill not working on VBS script 4 158
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question