Solved

Run scandisk and defrag from command line

Posted on 2002-06-27
2
309 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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Suggested Solutions

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…
Building a cohesive image for your brand is vital to making an impression on consumers. When the economy is tough, brands do better than unbranded  products. This can have a huge impact on your long-term profits, as the economy goes up and down.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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