Defragmentation as scheduled task?
  Home FAQ Contact Sign in
microsoft.public.windowsxp.customize only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... customize Profile…
 Up
Defragmentation as scheduled task?         


Author: Michael Moser
Date: Jul 20, 2008 17:16

I would like to regularly run defragmentation during night hours.
However, when I program it as a scheduled task, the UI window opens
but - since I don't click "Analyze" nor "Defragment" it does nothing and
sits there waiting for my input. What option or flag do I have to pass
so that it actually starts defragmentation (preferably even if the free
space is less than 15%%)?

Michael
10 Comments
Re: Defragmentation as scheduled task?         


Author: Shenan Stanley
Date: Jul 20, 2008 17:23

Michael Moser wrote:
> I would like to regularly run defragmentation during night hours.
> However, when I program it as a scheduled task, the UI window opens
> but - since I don't click "Analyze" nor "Defragment" it does
> nothing and sits there waiting for my input. What option or flag do
> I have to pass so that it actually starts defragmentation
> (preferably even if the free space is less than 15%%)?

Start button --> RUN --> type in:

cmd /k defrag /?

--> Click OK.

That should give you the command line optioons you would want to use when
making your scheduled task.

Probably: defrag c: -f

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
no comments
Re: Defragmentation as scheduled task?         


Author: Leonard Grey
Date: Jul 20, 2008 17:26

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

---
Leonard Grey
Errare humanum est

Michael Moser wrote:
> I would like to regularly run defragmentation during night hours.
> However, when I program it as a scheduled task, the UI window opens but
> - since I don't click "Analyze" nor "Defragment" it does nothing and
> sits there waiting for my input. What option or flag do I have to pass
> so that it actually starts defragmentation (preferably even if the free
> space is less than 15%%)?
>
> Michael
>
no comments
Re: Defragmentation as scheduled task?         


Author: Kelly
Date: Jul 21, 2008 09:51

You can run a batch file or script with the commands:

-go.bat-
start /WAIT %%windir%%/system32/defrag C: /f
start /WAIT %%windir%%/system32/defrag D: /f
echo off
echo "defrag done"
pause
--cut here--

System Defrag

Start/Programs/Accessories/System Tools/Disk Defragmenter

Restore Defrag.exe (Line 280)
http://www.kellys-korner-xp.com/xp_tweaks.htm

Add a Scheduled Task:

Start/Programs/Accessories/System Tools/Scheduled Tasks/Add Scheduled Task.
If Defrag is not listed, use Browse: C:\Windows\System32\defrag.exe...

Defrag All Hard Drives as a Scheduled Task (Line 20)
http://www.dougknox.com/utility/scripts_desc/defrag_all.htm

Add Defrag to the Context Menu (Right Click) - Line 43
http://www.kellys-korner-xp.com/xp_tweaks.htm
Show full article (1.67Kb)
no comments
Re: Defragmentation as scheduled task?         


Author: Swifty
Date: Jul 21, 2008 23:20

Michael Moser wrote:
> I would like to regularly run defragmentation during night hours.

I would recommend getting JKDefrag. It has a command line version which
is ideal for running as a scheduled task.

The Windows XP built-in defragmenter defragments just the files; you end
up with defragmented files (they are individually contiguous on disk)
but they are spattered all over your disk.

JKDefrag (which is free, and nothing to do with me) defragments the
files, but also moves them as close as possible to location 0, which is
the fastest part of the disk.

After I'd run JKDefrag I though my applications were hanging when I
launched them, until I realised that the disk accesses involved were
almost silent because the files were all clustered together (no pun
intended).

no comments
Re: Defragmentation as scheduled task?         


Author: Twayne
Date: Jul 25, 2008 15:18

> Michael Moser wrote:
>> I would like to regularly run defragmentation during night hours.
>
> I would recommend getting JKDefrag. It has a command line version
> which is ideal for running as a scheduled task.
>
> The Windows XP built-in defragmenter defragments just the files; you
> end up with defragmented files (they are individually contiguous on
> disk) but they are spattered all over your disk.
>
> JKDefrag (which is free, and nothing to do with me) defragments the
> files, but also moves them as close as possible to location 0, which
> is the fastest part of the disk.
>
> After I'd run JKDefrag I though my applications were hanging when I
> launched them, until I realised that the disk accesses involved were
> almost silent because the files were all clustered together (no pun
> intended...
Show full article (1.85Kb)
no comments
Re: Defragmentation as scheduled task?         


Author: a_nonymous
Date: Jul 27, 2008 19:25

Swifty wrote:
>>... JKDefrag ... defragments the
>> files, but also moves them as close as possible to location 0, ...

Twayne wrote:
> I never heard of JKDefrag but if it's any good it will have options for
> putting things on the beginning, first, mid, last, and the end of the
> sector lists.

By default, JkDefrag maintains a free space of 1%% of total disk between zones:
directories (at start of disk), regular files, SpaceHogs

There are many options for optimizing, compacting, size of free space,
sorting, forcing all to start or end of disk, etc.
http://www.kessels.com/JkDefrag/
no comments
Re: Defragmentation as scheduled task?         


Author: THE LORD
Date: Jul 27, 2008 22:31

DISKEEPER IS THE BEST
Show full article (0.76Kb)
no comments
Re: Defragmentation as scheduled task?         


Author: Twayne
Date: Jul 28, 2008 09:08

No, it isn't. Go do your shouting somewhwere else; preferable outdoors.
Show full article (0.86Kb)
no comments
Re: Defragmentation as scheduled task?         


Author: THE LORD
Date: Jul 29, 2008 22:17

well I hate to diagree. And y do you say its not.

"Twayne" devnull.spamcop.net> wrote in message
news:eTsquwM8IHA.5712@TK2MSFTNGP02.phx.gbl...
> No, it isn't. Go do your shouting somewhwere else; preferable outdoors.
>
>> DISKEEPER IS THE BEST...
Show full article (1.04Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
RE: Scheduled Tasksmicrosoft.public.windows.mediacenter ·
1 2