Scheduling a Defrag Task

K

KizMar

What's the command line I should use in Win XP Home so I
can schedule a Defrag task weekly? I can't seem to get it
to work, no matter what I do it only opens the Defrag
program, but it doesn't run anything.
 
R

Rich Barry

See if this helps.
To schedule a new task

1.. Open Scheduled Tasks.
2.. Double-click Add Scheduled Task.
3.. Follow the instructions in the Scheduled Task Wizard.
Notes

a.. To open Scheduled Tasks, click Start, click All Programs, point to
Accessories, point to System Tools, and then click Scheduled Tasks.
b.. If you want to configure advanced settings for the task, select the
Open advanced properties for this task when I click Finish check box on the
final page of the wizard.
c.. Confirm that the system date and time on your computer are accurate,
because Scheduled Tasks relies on this information to run scheduled tasks.
To verify or change this information, double-click the time indicator on the
taskbar.
d.. You must supply the password for the account on which you want the the
scehduled task to run. The password cannot be blank.
Related Topics
 
R

ras

Actually this is easily done. Open notepad and type "DEFRAG C: /f" without
the quotes and save it as a .BAT file. Now point your Task Scheduler toward
the newly created file. If you want other partitions defragged. Then
substitute the drive letter for C. The /f forces the defrag whether it
needs it or not.
Example: DEFRAG C: /f
DEFRAG E: /f
DEFRAG F: /f ........and so on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top