Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - Disk Defragmenter Command Line Switch?

Reply
 
Old 07-24-2009   #1 (permalink)
JamesJ


 
 

Disk Defragmenter Command Line Switch?

I'm trying to get Disk Defragmenter to analyze only 1 disk at a time
but can't seem do do it. I'm using the following but when it starts
analyzing
in reports Analyzing disk 1 of 2:
%SystemRoot%\system32\dfrgui.exe c:

I have an external hard drive but I don't want both drives to be analyzed.
Even when I got to Computer and right click c: and select Properties|Tools
Tab
and 'Defrag now' it analyzes both drives.
Any way I can get Defrag to address only 1 drive?

I'm using Vista Basic sp2.

James


My System SpecsSystem Spec
Old 07-24-2009   #2 (permalink)
Badger


 
 

Re: Disk Defragmenter Command Line Switch?

My defragmenter has a choice to select volumes or all drives.
I'm using Vista Home Premium.

"JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
news:O54PuxEDKHA.2832@xxxxxx
Quote:

> I'm trying to get Disk Defragmenter to analyze only 1 disk at a time
> but can't seem do do it. I'm using the following but when it starts
> analyzing
> in reports Analyzing disk 1 of 2:
> %SystemRoot%\system32\dfrgui.exe c:
>
> I have an external hard drive but I don't want both drives to be analyzed.
> Even when I got to Computer and right click c: and select Properties|Tools
> Tab
> and 'Defrag now' it analyzes both drives.
> Any way I can get Defrag to address only 1 drive?
>
> I'm using Vista Basic sp2.
>
> James
>
My System SpecsSystem Spec
Old 07-24-2009   #3 (permalink)
JamesJ


 
 

Re: Disk Defragmenter Command Line Switch?

From the moment I open defragmenter it begins analyzing my drives.
I get no opertunity to select a drive.

James

"Badger" <jerrymcm@xxxxxx> wrote in message
news:OsoqZQHDKHA.4648@xxxxxx
Quote:

> My defragmenter has a choice to select volumes or all drives.
> I'm using Vista Home Premium.
>
> "JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
> news:O54PuxEDKHA.2832@xxxxxx
Quote:

>> I'm trying to get Disk Defragmenter to analyze only 1 disk at a time
>> but can't seem do do it. I'm using the following but when it starts
>> analyzing
>> in reports Analyzing disk 1 of 2:
>> %SystemRoot%\system32\dfrgui.exe c:
>>
>> I have an external hard drive but I don't want both drives to be
>> analyzed.
>> Even when I got to Computer and right click c: and select
>> Properties|Tools Tab
>> and 'Defrag now' it analyzes both drives.
>> Any way I can get Defrag to address only 1 drive?
>>
>> I'm using Vista Basic sp2.
>>
>> James
>>
My System SpecsSystem Spec
Old 07-24-2009   #4 (permalink)
Badger


 
 

Re: Disk Defragmenter Command Line Switch?

My best guess is to shut down, disconnect the external drive and reboot.
Then do a defrag.

"JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
news:uxerXtHDKHA.4392@xxxxxx
Quote:

> From the moment I open defragmenter it begins analyzing my drives.
> I get no opertunity to select a drive.
>
> James
>
> "Badger" <jerrymcm@xxxxxx> wrote in message
> news:OsoqZQHDKHA.4648@xxxxxx
Quote:

>> My defragmenter has a choice to select volumes or all drives.
>> I'm using Vista Home Premium.
>>
>> "JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
>> news:O54PuxEDKHA.2832@xxxxxx
Quote:

>>> I'm trying to get Disk Defragmenter to analyze only 1 disk at a time
>>> but can't seem do do it. I'm using the following but when it starts
>>> analyzing
>>> in reports Analyzing disk 1 of 2:
>>> %SystemRoot%\system32\dfrgui.exe c:
>>>
>>> I have an external hard drive but I don't want both drives to be
>>> analyzed.
>>> Even when I got to Computer and right click c: and select
>>> Properties|Tools Tab
>>> and 'Defrag now' it analyzes both drives.
>>> Any way I can get Defrag to address only 1 drive?
>>>
>>> I'm using Vista Basic sp2.
>>>
>>> James
>>>
>
My System SpecsSystem Spec
Old 07-24-2009   #5 (permalink)
JamesJ


 
 

Re: Disk Defragmenter Command Line Switch?

I found out that it analyzes both drives upon opening, but when I select
Defrag now...
it then gives me the opportunity to select the drive(s).
I was a bit concerned that it would defrag both drives without any input
from me.
Must be by design.

Thanks much,
James

"Badger" <jerrymcm@xxxxxx> wrote in message
news:uzVbKhIDKHA.3732@xxxxxx
Quote:

> My best guess is to shut down, disconnect the external drive and reboot.
> Then do a defrag.
>
> "JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
> news:uxerXtHDKHA.4392@xxxxxx
Quote:

>> From the moment I open defragmenter it begins analyzing my drives.
>> I get no opertunity to select a drive.
>>
>> James
>>
>> "Badger" <jerrymcm@xxxxxx> wrote in message
>> news:OsoqZQHDKHA.4648@xxxxxx
Quote:

>>> My defragmenter has a choice to select volumes or all drives.
>>> I'm using Vista Home Premium.
>>>
>>> "JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
>>> news:O54PuxEDKHA.2832@xxxxxx
>>>> I'm trying to get Disk Defragmenter to analyze only 1 disk at a time
>>>> but can't seem do do it. I'm using the following but when it starts
>>>> analyzing
>>>> in reports Analyzing disk 1 of 2:
>>>> %SystemRoot%\system32\dfrgui.exe c:
>>>>
>>>> I have an external hard drive but I don't want both drives to be
>>>> analyzed.
>>>> Even when I got to Computer and right click c: and select
>>>> Properties|Tools Tab
>>>> and 'Defrag now' it analyzes both drives.
>>>> Any way I can get Defrag to address only 1 drive?
>>>>
>>>> I'm using Vista Basic sp2.
>>>>
>>>> James
>>>>
>>
My System SpecsSystem Spec
Old 07-24-2009   #6 (permalink)
Badger


 
 

Re: Disk Defragmenter Command Line Switch?

Glad it works now,
Badger

"JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
news:u7y$O0IDKHA.1380@xxxxxx
Quote:

> I found out that it analyzes both drives upon opening, but when I select
> Defrag now...
> it then gives me the opportunity to select the drive(s).
> I was a bit concerned that it would defrag both drives without any input
> from me.
> Must be by design.
>
> Thanks much,
> James
>
> "Badger" <jerrymcm@xxxxxx> wrote in message
> news:uzVbKhIDKHA.3732@xxxxxx
Quote:

>> My best guess is to shut down, disconnect the external drive and reboot.
>> Then do a defrag.
>>
>> "JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
>> news:uxerXtHDKHA.4392@xxxxxx
Quote:

>>> From the moment I open defragmenter it begins analyzing my drives.
>>> I get no opertunity to select a drive.
>>>
>>> James
>>>
>>> "Badger" <jerrymcm@xxxxxx> wrote in message
>>> news:OsoqZQHDKHA.4648@xxxxxx
>>>> My defragmenter has a choice to select volumes or all drives.
>>>> I'm using Vista Home Premium.
>>>>
>>>> "JamesJ" <jjy@xxxxxx_roadrunner.com> wrote in message
>>>> news:O54PuxEDKHA.2832@xxxxxx
>>>>> I'm trying to get Disk Defragmenter to analyze only 1 disk at a time
>>>>> but can't seem do do it. I'm using the following but when it starts
>>>>> analyzing
>>>>> in reports Analyzing disk 1 of 2:
>>>>> %SystemRoot%\system32\dfrgui.exe c:
>>>>>
>>>>> I have an external hard drive but I don't want both drives to be
>>>>> analyzed.
>>>>> Even when I got to Computer and right click c: and select
>>>>> Properties|Tools Tab
>>>>> and 'Defrag now' it analyzes both drives.
>>>>> Any way I can get Defrag to address only 1 drive?
>>>>>
>>>>> I'm using Vista Basic sp2.
>>>>>
>>>>> James
>>>>>
>>>
>
My System SpecsSystem Spec
Old 07-25-2009   #7 (permalink)


VISTA home prem 32bit SP2 --- XP Pro SP3 32bit
 
 

Re: Disk Defragmenter Command Line Switch?

CMD prompt

type:

defrag_c:_-w_-v

_ = spacebar

this will defrag the c drive and give a full report B4 and after
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Disk Defragmenter from Command Prompt Tutorials
Command Line Switch exe embeding? General Discussion
New to Vista.......question regarding GUI vs Command Line Disc Defragmenter Vista performance & maintenance
RE: New Command-Line Switch for Live Messenger Live Messenger
Command line switch Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46