Shortcut to Disk Management

  • Thread starter Thread starter Rick Altman
  • Start date Start date
R

Rick Altman

I have a regular need to remove and reassign a drive letter to a volume in
my system and I would like to know if the Disk Management function within
the Computer Management console has a command line interface (so that I can
write a batch file) or if a VBA script could automate a procedure whereby I
assisn and unassign a specific drive letter to a particular volume.

Any input would be appreciated...





--
Rick A.
Pleasanton CA
 
"Rick Altman" <rick.a@NOSPAMaltman.com> wrote in message
news:%23b%23we1cQIHA.1208@TK2MSFTNGP03.phx.gbl...
>I have a regular need to remove and reassign a drive letter to a volume in
>my system and I would like to know if the Disk Management function within
>the Computer Management console has a command line interface (so that I can
>write a batch file) or if a VBA script could automate a procedure whereby I
>assisn and unassign a specific drive letter to a particular volume.
>
> Any input would be appreciated...
>
>


You can create a shortcut to diskmgmt.msc.
 
On 12/18/2007 3:26 PM On a whim, Rick Altman pounded out on the keyboard

> I have a regular need to remove and reassign a drive letter to a volume in
> my system and I would like to know if the Disk Management function within
> the Computer Management console has a command line interface (so that I can
> write a batch file) or if a VBA script could automate a procedure whereby I
> assisn and unassign a specific drive letter to a particular volume.
>
> Any input would be appreciated...
>
>
>
>
>


Hi Rick,

This should help you get the job done:
http://support.microsoft.com/kb/300415/

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
--changeDtoQ.vbs--cut here--
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colVolumes = objWMIService.ExecQuery _
("Select * from Win32_Volume Where Name = 'D:\\'")

For Each objVolume in colVolumes
objVolume.DriveLetter = "Q:"
objVolume.Put_
Next
--cut here--

--
Mark L. Ferguson
e-mail subject line must include "QZ" or it's deleted
Holiday Lights: http://www.geocities.com/marfer_mvp/Xmaslgt.zip
..
"Rick Altman" <rick.a@NOSPAMaltman.com> wrote in message
news:%23b%23we1cQIHA.1208@TK2MSFTNGP03.phx.gbl...
>I have a regular need to remove and reassign a drive letter to a volume in
>my system and I would like to know if the Disk Management function within
>the Computer Management console has a command line interface (so that I can
>write a batch file) or if a VBA script could automate a procedure whereby I
>assisn and unassign a specific drive letter to a particular volume.
>
> Any input would be appreciated...
>
>
>
>
>
> --
> Rick A.
> Pleasanton CA
>
>
>
 
Perfect, Terry! Just what I was looking for. Thank you very much!



RA




"Terry R." <F1ComNOSPAM@pobox.com> wrote in message
news:OYCaoGdQIHA.5016@TK2MSFTNGP06.phx.gbl...
> On 12/18/2007 3:26 PM On a whim, Rick Altman pounded out on the keyboard
>
>
> Hi Rick,
>
> This should help you get the job done:
> http://support.microsoft.com/kb/300415/
>
> --
> Terry R.
>
 
On 12/18/2007 10:41 PM On a whim, Rick Altman pounded out on the keyboard

> Perfect, Terry! Just what I was looking for. Thank you very much!
>
>
>
> RA
>
>
>
>
> "Terry R." <F1ComNOSPAM@pobox.com> wrote in message
> news:OYCaoGdQIHA.5016@TK2MSFTNGP06.phx.gbl...
>> On 12/18/2007 3:26 PM On a whim, Rick Altman pounded out on the keyboard
>>
>>
>> Hi Rick,
>>
>> This should help you get the job done:
>> http://support.microsoft.com/kb/300415/
>>
>> --
>> Terry R.
>>

>
>


You're quite welcome.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
Back
Top