Solved

Run scandisk and defrag from command line

Posted on 2002-06-27
2
290 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
Comment Utility
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
Comment Utility
---- 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now