Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,I lilk to schedule Disk Defragmanter to run daily in 11:00 PM. I already schedule it using the task schedular. It runs but it wait for user input to click anylize or defragment.
The question I have is how can I run this utility (Disk Defragmenter) to defragmet my disk without need to click the defragmen button ?
Thanks a lot

Hi brother!
Go to this webpage:
http://www.compguystechweb.com/troubleshooting/windows/defrag_command.html
There you´ll find what you are looking for.
Regards.
Andrés

Thanks a lot for the reply brother.This is correct in WIN98 but not in WIN 2000.
No defrag command.
Thanks a lot.

Hello :You donot like the push-button right ?
Because it prevents the automatically
running of the program : yes ?
What about a different approach of the
problem ?
Make the push button automatically too !first : every day disfragmenting is
probably too much of a good thing.
(there is somewhere a program on internet
to check if a defragmentation is necessary)
(run this every day automatically and
defragment ONLY based on the result would
be a nice other thing too :) )
OK : now the solution.1) You need to download the freeware
Auto-It (little app) from
www.hiddensoft.com2) Now it is my turn :)
Because i need to make a little
aut program to make the
push button done automatically.
i have done this many times before
so i donot think there will be
too much problems (and if i do
have friends with "brainpower" ;)3) email me or wait and come back
to this site : i will try to make
this program today and post it.Good Luck
Theo

OK
I got it working (on my laptop)
but i cannot promise that it will work
on yours too.First off all :
The disk defrag program is a typical
Stand-alone Program : so please close
(or kill) as many applications and
services and screens ETC as possible
( a not always easy and sometimes
dangerous job, especially when
you kill services that somehow
need to run)
if you donot run it standalone a
lot of interfering of other programs
can prevent running this Auto-It
program as it should.I would schedule it "late in the evening"
after rebooting the system and closing
or killing as much as possible apps,services
etc (but again be very carefull in doing that).I start in the program a defrag console
which is located in the Tree Tab of the
Console Root (you have to define this
yourself first, has a number of 1)
===========================================; This is an Auto-It program
; Progam name : Auto-defrag.aut; author Theo Lockefeer dd 10/12/2002
; tested and works ok.
Run,MMC
;
; starts management console
;
WinWait,Console1
;
;Send,!C
;
; start console
;
;
Send,1
;
;
;start console 1 (=the defragconsole)
;
;
; program starts now.sleep,3000
;
MouseMove,153,415;Move the Mouse to the defrag button
;
;
sleep,3000
;
; wait a little
;
;
leftclick,153,415
;
;
; push the damned button
;
;
; the defragmentation starts
;
; a module to stop the whole
; defrag program after the defragmentation
; is done is a "future thing"
;
;; Further development possible TL.

Version 2 !Fixed a \ error !
Thanks to my friend Carsten.
Forget version 1
this runs smoother.Theo
===================================
; This is an Auto-It Program.
;
; Auto-defrag.aut
;
;
; Version 2.0
;Run,MMC "%windir%\\System32\\dfrg.msc"
WinWait,Disk Defragmenter
;
;sleep,7000
MouseMove,153,415;Move the Mouse to the defrag button
;
;
sleep,3000
;
; wait a little
;
;
leftclick,153,420
;
;
; push the damned button
;
;
; the defragmentation starts

TheoI try this:
http://www.executive.com/
It is very easy and work better.
Please let me know what you think.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |