Solved

Schedule disk defragmenting

Posted on 2004-08-10
8
394 Views
Last Modified: 2010-04-14
Ola,

How do I schedule all partitions on all disks to be fragmented every 01:00 AM ?

0
Comment
Question by:DaFou
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 14

Assisted Solution

by:dlwyatt82
dlwyatt82 earned 50 total points
ID: 11766947
The Disk Defragmenter that ships with windows 2000 by default does not allow itself to be run as a Scheduled Task. This is a licensing issue (Microsoft licensed a dumbed down version of another company's defrag product to ship with the OS).

One way around this is to write a script utilizing AutoIt (http://www.hiddensoft.com) to launch the disk defragmenter and send a series of keystrokes and/or mouse clicks to defrag your drives. You can then add a scheduled task to windows to launch your AutoIt script at 1am each morning.
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 11766980
This is something that can be done from the Task Scheduler.  Go to:

Start>Settings>Control Panel>Scheduled Tasks and double click on add scheduled task. From here you can select 'Disk Cleanup' and set it to run daily at 1AM.  You can also enter local credentials that the process can run under.
0
 
LVL 6

Accepted Solution

by:
knollbert earned 400 total points
ID: 11767022
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
LVL 14

Expert Comment

by:dlwyatt82
ID: 11767023
Samurai, Disk Cleanup and Disk Defragmenter are two very different things.
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 11767051
Doh!  Sorry gentlemen, I got ahead of myself.
0
 
LVL 14

Expert Comment

by:dlwyatt82
ID: 11767054
knollbert's comment is even better, a script ready-made! (though it still needs to be modified to suit your needs in terms of how many logical drives / volumes to defrag, etc)
0
 
LVL 1

Expert Comment

by:johncase142
ID: 11767536
Check out StartDefrag from http://kevin.gearhart.com.  It has a very nice GUI, and is very affordable.
0
 
LVL 16

Assisted Solution

by:glenn_1984
glenn_1984 earned 50 total points
ID: 11768489
Also check out http:executivesoftware.com.
I have been using Disk Keeper for years.
It does defragmenting to an nTH degree.
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

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…
Gain an elementary understanding of Blockchain technology.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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