Defrag Batch File

  • Thread starter Thread starter Devon
  • Start date Start date
D

Devon

When I try to use a batch file to defrag my disks, it
opens a command prompt and just starts scrolling "defrag
c:" then "defrag e:".
My batch file looks this:

----start file----
defrag c:
defrag e:
---- end file ----

It used to defrag properly when I did it like this but
now it doesn't. Am I doing something wrong?

I want to be able to run the batch like this so that I
can have it automatically defrag as the windows utility
doesn't let you set it to defrag more than one disk at a
time and I don't want to have to be there to tell it to
start defragmenting the next drive when it's done the
first.

Thanks
 
Works fine for me. Try running "Defrag C:" command manuall and see if you
receive any errors. Try under administrator login.

--
Ramesh - Microsoft MVP
http://www.mvps.org/sramesh2k

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com

~ Please reply to newsgroup ~


When I try to use a batch file to defrag my disks, it
opens a command prompt and just starts scrolling "defrag
c:" then "defrag e:".
My batch file looks this:

----start file----
defrag c:
defrag e:
---- end file ----

It used to defrag properly when I did it like this but
now it doesn't. Am I doing something wrong?

I want to be able to run the batch like this so that I
can have it automatically defrag as the windows utility
doesn't let you set it to defrag more than one disk at a
time and I don't want to have to be there to tell it to
start defragmenting the next drive when it's done the
first.

Thanks
 
Devon said:
When I try to use a batch file to defrag my disks, it
opens a command prompt and just starts scrolling "defrag
c:" then "defrag e:".
My batch file looks this:

----start file----
defrag c:
defrag e:
---- end file ----

It used to defrag properly when I did it like this but
now it doesn't. Am I doing something wrong?

I want to be able to run the batch like this so that I
can have it automatically defrag as the windows utility
doesn't let you set it to defrag more than one disk at a
time and I don't want to have to be there to tell it to
start defragmenting the next drive when it's done the
first.

Thanks

3rd party software does this automatically! Again programs
supplied with XP often lack full operations. I have three
hard drives and Diskeeper goes through them all while I am
doing something else. A click button operation. :-)
 
Back
Top