(Msg. 1) Posted: Mon Jul 21, 2008 2:16 am
Post subject: Defragmentation as scheduled task? Add to elertz Archived from groups: microsoft>public>windowsxp>customize (more info?)
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%)?
(Msg. 2) Posted: Mon Jul 21, 2008 2:16 am
Post subject: Re: Defragmentation as scheduled task? Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
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.
(Msg. 3) Posted: Mon Jul 21, 2008 2:16 am
Post subject: Re: Defragmentation as scheduled task? Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
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
>
(Msg. 4) Posted: Mon Jul 21, 2008 11:51 am
Post subject: Re: Defragmentation as scheduled task? Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
You can run a batch file or script with the commands:
"Michael Moser" <michael-nospam.moser DeleteThis @nospam.freesurf.ch> wrote in message
news:O1m6Ycs6IHA.2336@TK2MSFTNGP03.phx.gbl...
>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
>
(Msg. 5) Posted: Tue Jul 22, 2008 7:20 am
Post subject: Re: Defragmentation as scheduled task? Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
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).
(Msg. 6) Posted: Fri Jul 25, 2008 6:18 pm
Post subject: Re: Defragmentation as scheduled task? Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
> 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).
But I would recommend using XP's Task Scheduler to simply schedule it to
run with the appropriate flags.
As for "because the files were all clustered together", that simply
creates more need for more defrags than is neccessary. Fragmentation
begins to happen within the first few writes to the disk, where as when
there are spaces between the file sets, the OS can more quickly find a
place to dop a file. Remember, the registry is being read and written
to constantly, so even if you don't create files, fragmentation is going
to start happening.
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. Else it's not much good if it only does what you
describe. In general, IMO, using a 3rd part app to do what XP can do
well natively is just adding more opportunity for problems and
corruption to occur both on disk and in memory and in the registry.
Perhaps you should research the registry and its use a little?
(Msg. 7) Posted: Mon Jul 28, 2008 3:08 am
Post subject: Re: Defragmentation as scheduled task? Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
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/
(Msg. 8) Posted: Mon Jul 28, 2008 3:08 am
Post subject: Re: Defragmentation as scheduled task? Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
DISKEEPER IS THE BEST
"a_nonymous" <anonymous.TakeThisOut@discussions.microsoft.com> wrote in message
news:epxj4kF8IHA.1200@TK2MSFTNGP04.phx.gbl...
> 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/ >
>
All times are: Eastern Time (US & Canada) (change) Goto page 1, 2
Page 1 of 2
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum