Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Run scandisk and defrag from command line

Posted on 2002-06-27
2
Medium Priority
?
332 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

876 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