Computing.Net > Forums > Windows 2000 > Would like to schedule Disk Deferg

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Would like to schedule Disk Deferg

Reply to Message Icon

Name: Joe
Date: December 9, 2002 at 11:08:11 Pacific
OS: WIN 2000 Server
CPU/Ram: P III
Comment:


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




Sponsored Link
Ads by Google

Response Number 1
Name: Andy Supernova
Date: December 9, 2002 at 11:46:04 Pacific
Reply:

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


0

Response Number 2
Name: Joe
Date: December 9, 2002 at 15:05:36 Pacific
Reply:


Thanks a lot for the reply brother.

This is correct in WIN98 but not in WIN 2000.

No defrag command.


Thanks a lot.



0

Response Number 3
Name: 666
Date: December 9, 2002 at 16:12:08 Pacific
Reply:

http://www.executive.com/


0

Response Number 4
Name: Theo
Date: December 9, 2002 at 23:55:05 Pacific
Reply:


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.com

2) 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



0

Response Number 5
Name: Theo
Date: December 10, 2002 at 05:21:59 Pacific
Reply:

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.


0

Related Posts

See More



Response Number 6
Name: Theo
Date: December 10, 2002 at 08:06:16 Pacific
Reply:


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


0

Response Number 7
Name: Joe
Date: December 10, 2002 at 08:11:36 Pacific
Reply:


Theo

I try this:

http://www.executive.com/

It is very easy and work better.

Please let me know what you think.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Would like to schedule Disk Deferg

How to Backup MBR to floppy disk www.computing.net/answers/windows-2000/how-to-backup-mbr-to-floppy-disk/25445.html

Migration and Disk Quotas www.computing.net/answers/windows-2000/migration-and-disk-quotas/9289.html

Is it possible to schedule a defrag www.computing.net/answers/windows-2000/is-it-possible-to-schedule-a-defrag/20213.html