Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Schedule disk defragmenting

Posted on 2004-08-10
8
Medium Priority
?
396 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 200 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 1600 total points
ID: 11767022
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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…
Working from home is a dream for many people who aren’t happy about getting up early, going to the office, and spending long hours at work. There are lots of benefits of remote work for employees.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

650 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