Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
We are running a batch file to kick off defrag on multiple domain machines everything is working great however it wont start defrag on the next PC in the batch file until the first ones is complete ...... defrag alone takes sometimes so any ideas?
Learning in progress..........

So with that said can you give me an exmaple of what you mena ? like can I make a batch file thats has a bunch of calls in it? it will call each individual batch file the kicks off defrag per %computer name%? or will each call wait until the call it calls is complete
Or does anyone know of a script writing tool then can do several lines at once?Learning in progress..........

Have you considered just using the scheduler to schedule defrag on every workstation?
Why would you serial [one pc then another] defrag? That makes no sense.Example of Oxymoron:
Person who is pro life and anti sex education.
Education is key to prevention. Prevent conception you prevent abortion.Abstinence training clearly isn't working.

yes but i do not wish to visit each individual PS i want to implement a system wide job so to speak
Learning in progress..........

This really should have been Posted in the Programming Forum.
Eyes right at top of screen or go to the Specialty Forums Button at the top.
There is nothing to learn from someone who already agrees with you.

To start the defrag use 'Start'. For example:
start defrag.exe
It will start the defrag and then continue on with the next command in the BAT file.

You didn't post in the wrong spot.
What you are doing is failing to understand pcs in a domain. You can create a group policy that when rolled out would have scheduled defrag on all pcs... and the beauty is you would never have to leave your desk.
Forget the batch file and concentrate on implementing a group policy.
Example of Oxymoron:
Person who is pro life and anti sex education.
Education is key to prevention. Prevent conception you prevent abortion.Abstinence training clearly isn't working.

I understand making GPO's :) I'm actually typing this in my 70-299 class as we speak :) however at work there are seperate groups that deal with the Windows server end of the network.
I'm just the little pee on Desktop guy with a little bit of admin rights that would make a batch file implementing defrag accross multiple computers within that domain possibleLearning in progress..........

FWIW, at our engineering dept's computing labs, there is Diskeeper Administrator for control + desktop editions on the workstations for defragging. The whole thing is more or less automated. Sorry, but I don't know the specifics of the implementation since I am only a user, but the admins seem really pleased with this setup.

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

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