Defrag as Scheduled Task



Jentle Jiant
07-10-2005, 01:31 AM
I'd like to run defrag as a scheduled task while I am asleep.

Basic setup is easy. Found the command in Windows/System folder. But
that just opens the defrag console. At that stage it is necessary to
chose "analyze" or "defrag".

I want to set it up to automatically defrag. How do I do that?

(WinXP Home, SP2 installed)

Thanks
Jentle Jiant

WTC
07-10-2005, 01:31 AM
"Jentle Jiant" <jentle@jiant.com> wrote in message
news:7prmb19apfkh5b6oj6ukukf90o2l4frlri@4ax.com...
> I'd like to run defrag as a scheduled task while I am asleep.
>
> Basic setup is easy. Found the command in Windows/System folder. But
> that just opens the defrag console. At that stage it is necessary to
> chose "analyze" or "defrag".
>
> I want to set it up to automatically defrag. How do I do that?
>
> (WinXP Home, SP2 installed)
>


How to Automate Disk Defragmenter Using Task Scheduler Tool in Windows
XP
http://support.microsoft.com/?kbid=555098

--
William

Shenan Stanley
07-10-2005, 01:31 AM
Jentle Jiant wrote:
> I'd like to run defrag as a scheduled task while I am asleep.
>
> Basic setup is easy. Found the command in Windows/System folder. But
> that just opens the defrag console. At that stage it is necessary to
> chose "analyze" or "defrag".
>
> I want to set it up to automatically defrag. How do I do that?
>
> (WinXP Home, SP2 installed)

Search using Google!
http://www.google.com/
(How-to: http://www.google.com/intl/en/help/basics.html )

Search for, "Defrag as scheduled task in Windows XP" and some results
included...

- http://www.kellys-korner-xp.com/xp_defrag.htm
- http://www.djdenham.com/vb3viewlet/Sked_defrag_viewlet_swf.html
- http://www.tweakhound.com/xp/tasks/sch_defrag.htm
- http://blog.kevindonahue.com/archives/2004/10/defrag_multiple_driv.php

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html

Jentle Jiant
07-10-2005, 01:31 AM
On Thu, 23 Jun 2005 20:34:10 -0600, "WTC"
<bcrawfordjr(remove)@hotmail.com> wrote:

>"Jentle Jiant" <jentle@jiant.com> wrote in message
>news:7prmb19apfkh5b6oj6ukukf90o2l4frlri@4ax.com...
>> I'd like to run defrag as a scheduled task while I am asleep.
>>
>> Basic setup is easy. Found the command in Windows/System folder. But
>> that just opens the defrag console. At that stage it is necessary to
>> chose "analyze" or "defrag".
>>
>> I want to set it up to automatically defrag. How do I do that?
>>
>> (WinXP Home, SP2 installed)
>>
>
>
>How to Automate Disk Defragmenter Using Task Scheduler Tool in Windows
>XP
>http://support.microsoft.com/?kbid=555098


Great. Exactly what I was looking for. I searched the MS site, just
didn't phrase my search quite correctly.

Thanks so much

Jentle Jiant

Jentle Jiant
07-10-2005, 01:31 AM
On Thu, 23 Jun 2005 21:38:20 -0500, "Shenan Stanley"
<newshelper@gmail.com> wrote:

>Jentle Jiant wrote:
>> I'd like to run defrag as a scheduled task while I am asleep.
>>
>> Basic setup is easy. Found the command in Windows/System folder. But
>> that just opens the defrag console. At that stage it is necessary to
>> chose "analyze" or "defrag".
>>
>> I want to set it up to automatically defrag. How do I do that?
>>
>> (WinXP Home, SP2 installed)
>
> Search using Google!
> http://www.google.com/
> (How-to: http://www.google.com/intl/en/help/basics.html )
>
> Search for, "Defrag as scheduled task in Windows XP" and some results
>included...
>
> - http://www.kellys-korner-xp.com/xp_defrag.htm
> - http://www.djdenham.com/vb3viewlet/Sked_defrag_viewlet_swf.html
> - http://www.tweakhound.com/xp/tasks/sch_defrag.htm
> - http://blog.kevindonahue.com/archives/2004/10/defrag_multiple_driv.php
>
>--
>Shenan Stanley
> MS-MVP

Thanks for the response. Much Appreciated.

Jentle Jiant

David Candy
07-10-2005, 01:31 AM
Well why didn't you type it in help then. This is the third suggested topic, the first full text topic, and topic 2 in Knowledge base.

Defrag
Locates and consolidates fragmented boot files, data files, and folders on local volumes.

Syntax
defrag volume

defrag volume [/a]

defrag volume [/a] [/v]

defrag volume [/v]

defrag volume [/f]

Parameters
volume
The drive letter or a mount point of the volume to be defragmented.
/a
Analyzes the volume and displays a summary of the analysis report.
/v
Displays the complete analysis and defragmentation reports.
When used in combination with /a, displays only the analysis report. When used alone, displays both the analysis and defragmentation reports.

/f
Forces defragmentation of the volume regardless of whether it needs to be defragmented.
/?
Displays help at the command prompt.
Remarks
a.. A volume must have at least 15% free space for defrag to completely and adequately defragment it. Defrag uses this space as a sorting area for file fragments. If a volume has less than 15% free space, defrag will only partially defragment it. To increase the free space on a volume, delete unneeded files or move them to another disk.
b.. You cannot defragment volumes that the file system has marked as dirty, which indicates possible corruption. You must run chkdsk on a dirty volume before you can defragment it. You can determine if a volume is dirty by using the fsutil dirty query command. For more information about chkdsk and fsutil dirty, see Related Topics.
c.. While defrag is analyzing and defragmenting a volume, it displays a blinking cursor. When defrag is finished analyzing and defragmenting the volume, it displays the analysis report, the defragmentation report, or both reports, and then exits to the command prompt.
d.. By default, defrag displays a summary of both the analysis and defragmentation reports if you do not specify the /a or /v parameters.
e.. You can send the reports to a text file by typing >filename.txt, where filename.txt is a file name you specify. For example:
defrag volume /v >filename.txt

f.. To interrupt the defragmentation process, at the command line, press CTRL+C.
g.. Running the defrag command and Disk Defragmenter are mutually exclusive. If you are using Disk Defragmenter to defragment a volume and you run the defrag command at a command-line, the defrag command fails. Conversely, if you run the defrag command and open Disk Defragmenter, the defragmentation options in Disk Defragmenter are unavailable.

--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
"Jentle Jiant" <jentle@jiant.com> wrote in message news:de0nb1l2ipqngc1jl4a5u48vk8l2h2djs6@4ax.com...
> On Thu, 23 Jun 2005 20:34:10 -0600, "WTC"
> <bcrawfordjr(remove)@hotmail.com> wrote:
>
>>"Jentle Jiant" <jentle@jiant.com> wrote in message
>>news:7prmb19apfkh5b6oj6ukukf90o2l4frlri@4ax.com...
>>> I'd like to run defrag as a scheduled task while I am asleep.
>>>
>>> Basic setup is easy. Found the command in Windows/System folder. But
>>> that just opens the defrag console. At that stage it is necessary to
>>> chose "analyze" or "defrag".
>>>
>>> I want to set it up to automatically defrag. How do I do that?
>>>
>>> (WinXP Home, SP2 installed)
>>>
>>
>>
>>How to Automate Disk Defragmenter Using Task Scheduler Tool in Windows
>>XP
>>http://support.microsoft.com/?kbid=555098
>
>
> Great. Exactly what I was looking for. I searched the MS site, just
> didn't phrase my search quite correctly.
>
> Thanks so much
>
> Jentle Jiant


Defrag as Scheduled Task