Task Scheduler

D

DadRalph

I finally got the scheduler working. However, on Disk
Clean-up, and defrag, it only shows the window for each
of these, it does not complete the task. In other words,
it is just a reminder, and you have to follow thru
yourself. Am I correct on this?
 
R

ras

Not sure on the disk clean-up but you are correct on the defrag. However
there is a workaround. You need to create a batch file and run the batch
file through Task Scheduler. Open 'Notepad' and type "DEFRAG C: /f"
(without the quotes), add whatever other drive letters you also want to
defrag. The /f forces the defrag even if it doesn't need to be defragged so
that is optional. Save your batch file as Defrag_all or just Defrag_C or
whatever you want to call it. The important part is to save it as a batch
file (.bat). Under 'Save as type' change to 'All files' then give it the
..bat extension. Then go to Task Scheduler and point it to your batch file.
You can try it out by right-clicking on your newly created file and select
'Run'. You can also defrag from a command prompt (which is what you're
doing with the batch file) by going to Start | Run | and type 'Defrag C:'
 
T

Thorsten Matzner

DadRalph said:
I finally got the scheduler working. However, on Disk
Clean-up, and defrag, it only shows the window for each
of these, it does not complete the task. In other words,
it is just a reminder, and you have to follow thru
yourself. Am I correct on this?

See "How to Automate the Disk Cleanup Tool in Windows XP"
(http://support.microsoft.com/?kbid=315246).
For the Defragmenter: create a new Scheduled Task for any application
and then open the Properties for this task. Overwrite the command-line
with a command-line for DEFRAG.EXE. Help with this command-line tool
is available from a DOS prompt with
DEFRAG /?
 

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