Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk defrag without human intervention

Status
Not open for further replies.

SilentWings

Programmer
Apr 24, 2002
27
PT
Hi ppl,

I’m making a .BAT file that make a lot of operations and runs during the night. In the middle of that operations I need to do a disk defrag in Windows 2000 professional.
How can I do that?
- I don’t know how to start the disk defrag
- How can I do that without having to click “Start” in the defrag application?

Thanks in advance.
 
Have a look at this article, should be helpful.

I believe you'll have to run this as a Windows scheduled task.


Matt J.

Please always take the time to backup any and all data before performing any actions suggested for ANY problem, regardless of how minor a change it might seem. Also test the backup to make sure it is intact.
 
If your purpose is to defragment regularly you can try some of the third party solutions that do it automatically. These allow you to set the scheduling and perform the task in the background.
 
Very interesting everybody. How have the scripts been in actual use?

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top