|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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
|
|
|
|
|
|
#2 |
|
Staff
Premium Member
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.
|
|
|
|
|
|
#3 |
|
Professional gadfly
|
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. |
|
|
|
|
|
#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 |
|
|
|
|
|
#5 |
|
Professional gadfly
|
The -f forces it to defrag even if free space is low. The -v gives verbose output.
|
|
|
|
|
|
#6 | |
|
Member (13 bit)
Join Date: Mar 1999
Posts: 6,791
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|