Scheduling a defrag

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I am trying to set up a scheduled defrag through administrator. I add a
scheduled task and browse for `defrag.exe' and add. When the task starts i
get a brief flash of a dos screen and no defrag. Any ideas ??
 
Graham said:
Hi. I am trying to set up a scheduled defrag through
administrator. I add a scheduled task and browse for
`defrag.exe' and add. When the task starts i get a brief
flash of a dos screen and no defrag. Any ideas ??

You might want to take a look at this article:

Schedule a Task to Defragment Drives
http://www.microsoft.com/windowsxp/using/setup/learnmore/tips/gehrke1.mspx

I'm guessing that you left out the part about adding the drive
letter as detailed in step six.

If you have multiple partitions or hard drives on your system,
you can use this script as a scheduled task:

Defrag All Hard Drives
http://www.dougknox.com/utility/scripts_desc/defrag_all.htm

Good luck

Nepatsfan
 
I tried what it said in the article. In the run window it
said`C:|WINDOWS|System32|defrag.exe\C' . Is this correct ?
I also got a window box stating` An error has occured while attempting to
set task account information. Specific error is 0x80070005:Access is denied.
You do not have permission to perform the required operation'. I am using
administrator.
 
First off, make sure there's a space between defrag.exe and C:
It should look like this:

C:\Windows\System32\defrag.exe C:

Here's another Microsoft article that you might want to take a
look at:

How to Automate Disk Defragmenter Using Task Scheduler Tool in
Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;555098

Next, the error message you're getting is due to the fact that
you're trying to schedule a task to run under an account that
does not have a password. Take a look here for more info:

Scheduled Tasks cannot run with a blank password
http://support.microsoft.com/default.aspx?scid=kb;en-us;310715

There is a workaround. Scroll down to "Scheduled Tasks -
Applying/Running tasks without a password" on this web page:

http://www.kellys-korner-xp.com/xp_s.htm

Keep in mind that using this workaround weakens the security on
your system. Adding a password to your account is the correct
approach to solve this problem.

Good luck

Nepatsfan
 
Thanks very much. I re-wrote the path but still got the error and no defrag.
Went to article on password. Seems as you say that because i didn't have
password on account it would not execute. Now ok. Once again many thanks
Graham.
 

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


Back
Top