defrag all hard drives

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running vista ultimate. I have three hard drives. When I defrag does
it just do the C drive or all of them. If not all, how can I set it up to do
this. Thanks,
Maryann
 
maryann said:
I am running vista ultimate. I have three hard drives. When I defrag does
it just do the C drive or all of them. If not all, how can I set it up to
do
this. Thanks,
Maryann


Maryann:

For a single time, use the command prompt. For repeat functionality put the
commands into a batch file. Once the batch file is written, create a
shortcut to the batch file and give the batch file Administrators group
privileges, else it won't run.

Single time:

[ Note: you must right-click on the Command Prompt and select 'Run as
administrator'. Command Prompt is found under Accessories (Start > All
Programs > Accessories > Command Prompt) ]

At the command prompt (or in a script if you want to write one up):

type in exactly:
defrag -c -v

then hit:
Enter

The -c switch is telling defrag to do all the drives .. the -v switch is
telling it to report on screen the progress (verbose). At the command prompt
type:

defrag /?
then hit
Enter

to get more info on each switch.

Repeatedly:

Type the commands you want into a batch file [ somename.bat ]. You can use
Notepad to create the batch file.

To run the batch file with Administrator privileges each time read this
article:

[Always Run a Batch File as an Administrator]
http://www.vistaclues.com/run-a-batch-file-as-an-administrator/#more-137

Which says, essentially, you create a shortcut to the batch file and give
the shortcut Administrators privileges. Use the shortcut to run the batch
file.

Saucy
 
interesting.. so if you create a shortcut to an MSI installer package and
you give that
shortcut admin privilages will the install be done under admin rights?

thanks

Saucy said:
maryann said:
I am running vista ultimate. I have three hard drives. When I defrag
does
it just do the C drive or all of them. If not all, how can I set it up
to do
this. Thanks,
Maryann


Maryann:

For a single time, use the command prompt. For repeat functionality put
the commands into a batch file. Once the batch file is written, create a
shortcut to the batch file and give the batch file Administrators group
privileges, else it won't run.

Single time:

[ Note: you must right-click on the Command Prompt and select 'Run as
administrator'. Command Prompt is found under Accessories (Start > All
Programs > Accessories > Command Prompt) ]

At the command prompt (or in a script if you want to write one up):

type in exactly:
defrag -c -v

then hit:
Enter

The -c switch is telling defrag to do all the drives .. the -v switch is
telling it to report on screen the progress (verbose). At the command
prompt type:

defrag /?
then hit
Enter

to get more info on each switch.

Repeatedly:

Type the commands you want into a batch file [ somename.bat ]. You can
use Notepad to create the batch file.

To run the batch file with Administrator privileges each time read this
article:

[Always Run a Batch File as an Administrator]
http://www.vistaclues.com/run-a-batch-file-as-an-administrator/#more-137

Which says, essentially, you create a shortcut to the batch file and give
the shortcut Administrators privileges. Use the shortcut to run the batch
file.

Saucy
 
Tiberius said:
interesting.. so if you create a shortcut to an MSI installer package and
you give that
shortcut admin privilages will the install be done under admin rights?

thanks

Saucy said:
maryann said:
I am running vista ultimate. I have three hard drives. When I defrag
does
it just do the C drive or all of them. If not all, how can I set it up
to do
this. Thanks,
Maryann


Maryann:

For a single time, use the command prompt. For repeat functionality put
the commands into a batch file. Once the batch file is written, create a
shortcut to the batch file and give the batch file Administrators group
privileges, else it won't run.

Single time:

[ Note: you must right-click on the Command Prompt and select 'Run as
administrator'. Command Prompt is found under Accessories (Start > All
Programs > Accessories > Command Prompt) ]

At the command prompt (or in a script if you want to write one up):

type in exactly:
defrag -c -v

then hit:
Enter

The -c switch is telling defrag to do all the drives .. the -v switch is
telling it to report on screen the progress (verbose). At the command
prompt type:

defrag /?
then hit
Enter

to get more info on each switch.

Repeatedly:

Type the commands you want into a batch file [ somename.bat ]. You can
use Notepad to create the batch file.

To run the batch file with Administrator privileges each time read this
article:

[Always Run a Batch File as an Administrator]
http://www.vistaclues.com/run-a-batch-file-as-an-administrator/#more-137

Which says, essentially, you create a shortcut to the batch file and give
the shortcut Administrators privileges. Use the shortcut to run the batch
file.

Saucy


I couldn't tell you .. worth a try though.

Saucy
 
Back
Top