Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-30-2004, 01:49 PM   #1
Member (7 bit)
 
Join Date: Apr 2004
Posts: 70
Need Advice

I have a computer running Win Xp Pro. I need it to do a defrag around 9pm when no one is around. I understand the PC must be left on. I looked into the scheduled task wizard & did not see a defrag option. How can I set this machine to defrag when no one is around or set it as a schedules task some other way. Thanks
wantabe2 is offline   Reply With Quote
Old 06-30-2004, 01:54 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
I don't think that the built-in version of defrag allows defrags to be scheduled. You would have to have Diskeeper or other 3rd party to allow you to do that.
mairving is offline   Reply With Quote
Old 06-30-2004, 01:55 PM   #3
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
I created a batch file that contained this line:

defrag C: -f -v > C:\defrag.txt

Then, I set up a new scheduled task (instead of selecting one from the list, I clicked on "Browse" and selected the batch file I just made). It runs just fine.

You could dispense with the batch file and simply navigate to defrag.exe (in your \Windows\System32 folder) and do it that way. I like my version because it will pipe the output into a text file that I can look at later to see what happened. If you don't need that output, don't use the batch file method.
doctorgonzo is offline   Reply With Quote
Old 06-30-2004, 03:51 PM   #4
Member (7 bit)
 
Join Date: Apr 2004
Posts: 70
What does the
-f -v
make it do. I have one set up as just defrag c: but do not have the -f or -v

Thanks
wantabe2 is offline   Reply With Quote
Old 06-30-2004, 03:52 PM   #5
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
The -f forces it to defrag even if free space is low. The -v gives verbose output.
doctorgonzo is offline   Reply With Quote
Old 06-30-2004, 04:54 PM   #6
Member (13 bit)
 
Floppyman's Avatar
 
Join Date: Mar 1999
Posts: 6,791
Quote:
Originally posted by doctorgonzo
I created a batch file that contained this line:

defrag C: -f -v > C:\defrag.txt

Then, I set up a new scheduled task (instead of selecting one from the list, I clicked on "Browse" and selected the batch file I just made). It runs just fine.

You could dispense with the batch file and simply navigate to defrag.exe (in your \Windows\System32 folder) and do it that way. I like my version because it will pipe the output into a text file that I can look at later to see what happened. If you don't need that output, don't use the batch file method.
Hey this is pretty cool, I'll have to give it a try. You should post this in the Tips and Tricks forum.
Floppyman is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:19 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2