automated defrag



Marc
07-10-2005, 12:50 AM
Hi all,
does WinXP provide a way to automate "Defrag"? One possibility to do
that is to create an script and schedule it for being executed at a certain
time but, in a computer running 24x7, the desired way should be to run
defrag in background mode when the resources load is low or when
there's no HDD requests from applications. I know that there are some
commercial products that performs that, but I'd like something provided
by WinXP itself ... or free???

Thanks,
Marc Soleda

Thorsten Matzner
07-10-2005, 12:50 AM
"Marc" <Marc@discussions.microsoft.com> wrote:

>does WinXP provide a way to automate "Defrag"? One possibility to do
>that is to create an script and schedule it for being executed at a certain
>time but, in a computer running 24x7, the desired way should be to run
>defrag in background mode when the resources load is low or when
>there's no HDD requests from applications. I know that there are some
>commercial products that performs that, but I'd like something provided
>by WinXP itself ... or free???

Create a Scheduled Task for any program, then open the Properties and
overwrite the command-line for one for DEFRAG. Help with this
command-line tool is available with
DEFRAG /?
from a DOS prompt.

--
(tm)
ICQ: 192649233

Marc
07-10-2005, 12:51 AM
Yes but, AFAIK, it's not optimized and defrag will run at the scheduled time
even the cpu and hdd are permorming other tasks so the computer will be
overloaded.

"Thorsten Matzner" wrote:

> "Marc" <Marc@discussions.microsoft.com> wrote:
>
> >does WinXP provide a way to automate "Defrag"? One possibility to do
> >that is to create an script and schedule it for being executed at a certain
> >time but, in a computer running 24x7, the desired way should be to run
> >defrag in background mode when the resources load is low or when
> >there's no HDD requests from applications. I know that there are some
> >commercial products that performs that, but I'd like something provided
> >by WinXP itself ... or free???
>
> Create a Scheduled Task for any program, then open the Properties and
> overwrite the command-line for one for DEFRAG. Help with this
> command-line tool is available with
> DEFRAG /?
> from a DOS prompt.
>
> --
> (tm)
> ICQ: 192649233
>

Jon
07-10-2005, 12:51 AM
Have a look at the settings tab after right-clicking the task > properties
in Scheduled Tasks
Check the "Only start the task if the computer has been idle...." option

Also you may wish to schedule it for times when you are less likely to be
using the computer eg 3 am


Jon

"Marc" <Marc@discussions.microsoft.com> wrote in message
news:67BA6922-EA9D-41F1-BF4A-EE561A383EAF@microsoft.com...
> Yes but, AFAIK, it's not optimized and defrag will run at the scheduled
> time
> even the cpu and hdd are permorming other tasks so the computer will be
> overloaded.
>
> "Thorsten Matzner" wrote:
>
>> "Marc" <Marc@discussions.microsoft.com> wrote:
>>
>> >does WinXP provide a way to automate "Defrag"? One possibility to do
>> >that is to create an script and schedule it for being executed at a
>> >certain
>> >time but, in a computer running 24x7, the desired way should be to run
>> >defrag in background mode when the resources load is low or when
>> >there's no HDD requests from applications. I know that there are some
>> >commercial products that performs that, but I'd like something provided
>> >by WinXP itself ... or free???
>>
>> Create a Scheduled Task for any program, then open the Properties and
>> overwrite the command-line for one for DEFRAG. Help with this
>> command-line tool is available with
>> DEFRAG /?
>> from a DOS prompt.
>>
>> --
>> (tm)
>> ICQ: 192649233
>>

Killer
07-10-2005, 12:51 AM
Marc.

If you really want to do as you suggest, I would tell you to go buy the Full
version of the Windows XP defrag program. A company named 'Executive
Software' wrote the original program and Microsoft uses a small piece of the
program. The programs is named 'Diskeeper Professional Edition Ver 9" (most
recent). I think it sell for about $50.00 (can not find receipt), and it
will do everything you want it to do and do it faster. Check out the 'Set
It and Forget It' feature, the 'Smart Scheduling', and my favorite
'Boot-Time Defragmentation'. This program ROCKS. (www.executive.com)

Later
Rod
"Thorsten Matzner" <tmatzner@gmx.net> wrote in message
news:%23U27xOOZFHA.2688@TK2MSFTNGP09.phx.gbl...
> "Marc" <Marc@discussions.microsoft.com> wrote:
>
>>does WinXP provide a way to automate "Defrag"? One possibility to do
>>that is to create an script and schedule it for being executed at a
>>certain
>>time but, in a computer running 24x7, the desired way should be to run
>>defrag in background mode when the resources load is low or when
>>there's no HDD requests from applications. I know that there are some
>>commercial products that performs that, but I'd like something provided
>>by WinXP itself ... or free???
>
> Create a Scheduled Task for any program, then open the Properties and
> overwrite the command-line for one for DEFRAG. Help with this
> command-line tool is available with
> DEFRAG /?
> from a DOS prompt.
>
> --
> (tm)
> ICQ: 192649233

Richard Urban
07-10-2005, 12:51 AM
What you want is "only" available from 3rd party software. That is how they
make their money - by making their software better than that supplied with
the operating system!

--
Regards,

Richard Urban

aka Crusty (-: Old B@stard :-)

If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!


"Marc" <Marc@discussions.microsoft.com> wrote in message
news:09C5D2A2-B466-4812-9E2E-A440688C9FFB@microsoft.com...
> Hi all,
> does WinXP provide a way to automate "Defrag"? One possibility to do
> that is to create an script and schedule it for being executed at a
> certain
> time but, in a computer running 24x7, the desired way should be to run
> defrag in background mode when the resources load is low or when
> there's no HDD requests from applications. I know that there are some
> commercial products that performs that, but I'd like something provided
> by WinXP itself ... or free???
>
> Thanks,
> Marc Soleda
>
>
>

Marc
07-10-2005, 12:51 AM
Ok, thank you people, now I have a clear view of the situation.

"Richard Urban" wrote:

> What you want is "only" available from 3rd party software. That is how they
> make their money - by making their software better than that supplied with
> the operating system!
>
> --
> Regards,
>
> Richard Urban
>
> aka Crusty (-: Old B@stard :-)
>
> If you knew as much as you think you know,
> You would realize that you don't know what you thought you knew!
>
>
> "Marc" <Marc@discussions.microsoft.com> wrote in message
> news:09C5D2A2-B466-4812-9E2E-A440688C9FFB@microsoft.com...
> > Hi all,
> > does WinXP provide a way to automate "Defrag"? One possibility to do
> > that is to create an script and schedule it for being executed at a
> > certain
> > time but, in a computer running 24x7, the desired way should be to run
> > defrag in background mode when the resources load is low or when
> > there's no HDD requests from applications. I know that there are some
> > commercial products that performs that, but I'd like something provided
> > by WinXP itself ... or free???
> >
> > Thanks,
> > Marc Soleda
> >
> >
> >
>
>
>

Bert Kinney
07-10-2005, 12:51 AM
Hi Marc,

You may find this utility helpful also.
Defragment All Hard Drives
http://www.dougknox.com/utility/scripts_desc/defrag_all.htm

--
Regards,
Bert Kinney MS-MVP Shell/User
http://dts-l.org/


Marc wrote:
> Ok, thank you people, now I have a clear view of the
> situation.
>
> "Richard Urban" wrote:
>
>> What you want is "only" available from 3rd party
>> software. That is how they make their money - by making
>> their software better than that supplied with the
>> operating system!
>>
>> --
>> Regards,
>>
>> Richard Urban
>>
>> aka Crusty (-: Old B@stard :-)
>>
>> If you knew as much as you think you know,
>> You would realize that you don't know what you thought
>> you knew!
>>
>>
>> "Marc" wrote
>>> Hi all,
>>> does WinXP provide a way to automate "Defrag"? One
>>> possibility to do that is to create an script and
>>> schedule it for being executed at a certain
>>> time but, in a computer running 24x7, the desired way
>>> should be to run defrag in background mode when the
>>> resources load is low or when there's no HDD requests
>>> from applications. I know that there are some
>>> commercial products that performs that, but I'd like
>>> something provided by WinXP itself ... or free???
>>>
>>> Thanks,
>>> Marc Soleda

1badtech
07-10-2005, 12:51 AM
Marc Wrote:
> Hi all,
> does WinXP provide a way to automate "Defrag"? One possibility to do
> that is to create an script and schedule it for being executed at a
> certain
> time but, in a computer running 24x7, the desired way should be to run
> defrag in background mode when the resources load is low or when
> there's no HDD requests from applications. I know that there are some
> commercial products that performs that, but I'd like something provided
> by WinXP itself ... or free???
>
> Thanks,
> Marc Soleda

Yes the task scheduler can run defrag at night but it may not be the
most efficient way to do it. Like someone mentioned, the built-in
defrag is made by another company who sells the full version of it.

Here's a couple of articles that might be helpful.

'http://www.theeldergeek.com/defragmenting_a_page_file.htm'
(http://www.theeldergeek.com/defragmenting_a_page_file.htm)

'http://www.hookbuilt.com/zine/Articles/defrag.html'
(http://www.hookbuilt.com/zine/Articles/defrag.html)

'http://itresearch.forbes.com/detail/RES/1103631551_156.html'
(http://itresearch.forbes.com/detail/RES/1103631551_156.html)


--
1badtech
------------------------------------------------------------------------
1badtech's Profile: http://forum.osnn.net/member.php?userid=9450
View this thread: http://forum.osnn.net/showthread.php?t=75263

deango
07-10-2005, 12:52 AM
Hi Marc. Download this free utility program. It overrides MS's built in defrag and monitors and defrags continually..........Great peace of mind, let me tell you..............Regards. Deango
Marc wrote:
: : Hi all,
: : does WinXP provide a way to automate "Defrag"? One possibility to do

Richard Urban
07-10-2005, 12:52 AM
Great post. WHAT utility?

--
Regards,

Richard Urban

aka Crusty (-: Old B@stard :-)

If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!


"deango" <Deango@nospamtoday.com> wrote in message
news:uWmbSxWZFHA.1404@TK2MSFTNGP09.phx.gbl...
Hi Marc. Download this free utility program. It overrides MS's built in
defrag and monitors and defrags continually..........Great peace of mind,
let me tell you..............Regards. Deango
Marc wrote:
: : Hi all,
: : does WinXP provide a way to automate "Defrag"? One possibility to do

Li'l Roberto
07-10-2005, 12:52 AM
"Richard Urban" <richardurbanREMOVETHIS@hotmail.com> wrote in message
news:eWOVe5WZFHA.796@TK2MSFTNGP10.phx.gbl...
> Great post. WHAT utility?
>
> --
> Regards,
>
> Richard Urban
>
> aka Crusty (-: Old B@stard :-)
>
> If you knew as much as you think you know,
> You would realize that you don't know what you thought you knew!

it's so good he wants to keep it to himself <grin>

rgds
Li'Roberto



> "deango" <Deango@nospamtoday.com> wrote in message
> news:uWmbSxWZFHA.1404@TK2MSFTNGP09.phx.gbl...
> Hi Marc. Download this free utility program. It overrides MS's built in
> defrag and monitors and defrags continually..........Great peace of mind,
> let me tell you..............Regards. Deango
> Marc wrote:
> : : Hi all,
> : : does WinXP provide a way to automate "Defrag"? One possibility to do
>
>

Bob I
07-10-2005, 12:53 AM
DoDa Defrag by VapourWare of course! :-)

Richard Urban wrote:

> Great post. WHAT utility?
>

Marc
07-10-2005, 12:54 AM
I'm trying to do it in that way as it reaches my needs but one thing that I'd
like to bypass is that when the task is executed the cmd window is showed.
How can I execute the task in background mode or almost minimized?
I've looked for a flag/switch that could do that but I haven't found it.

Thanks,
Marc Soleda


"Jon" wrote:

> Have a look at the settings tab after right-clicking the task > properties
> in Scheduled Tasks
> Check the "Only start the task if the computer has been idle...." option
>
> Also you may wish to schedule it for times when you are less likely to be
> using the computer eg 3 am
>
>
> Jon
>
> > "Thorsten Matzner" wrote:
> >
> >> overwrite the command-line for one for DEFRAG. Help with this
> >> command-line tool is available with
> >> DEFRAG /?
> >> from a DOS prompt.

Marc
07-10-2005, 12:54 AM
I'm trying to do it in that way as it reaches my needs but one thing that I'd
like to bypass is that when the task is executed the cmd window is showed.
How can I execute the task in background mode or almost minimized?
I've looked for a flag/switch that could do that but I haven't found it.

Thanks,
Marc Soleda

"Jon" wrote:

> Have a look at the settings tab after right-clicking the task > properties
> in Scheduled Tasks
> Check the "Only start the task if the computer has been idle...." option
>
> Also you may wish to schedule it for times when you are less likely to be
> using the computer eg 3 am
>
>
> Jon
>
> "Marc" <Marc@discussions.microsoft.com> wrote in message
> news:67BA6922-EA9D-41F1-BF4A-EE561A383EAF@microsoft.com...
> > Yes but, AFAIK, it's not optimized and defrag will run at the scheduled
> > time
> > even the cpu and hdd are permorming other tasks so the computer will be
> > overloaded.
> >
> > "Thorsten Matzner" wrote:
> >
> >> "Marc" <Marc@discussions.microsoft.com> wrote:
> >>
> >> >does WinXP provide a way to automate "Defrag"? One possibility to do
> >> >that is to create an script and schedule it for being executed at a
> >> >certain
> >> >time but, in a computer running 24x7, the desired way should be to run
> >> >defrag in background mode when the resources load is low or when
> >> >there's no HDD requests from applications. I know that there are some
> >> >commercial products that performs that, but I'd like something provided
> >> >by WinXP itself ... or free???
> >>
> >> Create a Scheduled Task for any program, then open the Properties and
> >> overwrite the command-line for one for DEFRAG. Help with this
> >> command-line tool is available with
> >> DEFRAG /?
> >> from a DOS prompt.
> >>
> >> --
> >> (tm)
> >> ICQ: 192649233
> >>
>
>
>


automated defrag