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...

Signature
Rick A.
Pleasanton CA
Pegasus (MVP) - 18 Dec 2007 23:47 GMT
>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
[quoted text clipped - 3 lines]
>
> Any input would be appreciated...
You can create a shortcut to diskmgmt.msc.
Terry R. - 18 Dec 2007 23:57 GMT
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
[quoted text clipped - 3 lines]
>
> Any input would be appreciated...
Hi Rick,
This should help you get the job done:
http://support.microsoft.com/kb/300415/

Signature
Terry R.
***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
Rick Altman - 19 Dec 2007 06:41 GMT
Perfect, Terry! Just what I was looking for. Thank you very much!
RA
> 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. - 19 Dec 2007 15:36 GMT
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!
>
[quoted text clipped - 6 lines]
>> This should help you get the job done:
>> http://support.microsoft.com/kb/300415/
You're quite welcome.

Signature
Terry R.
***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
Mark L. Ferguson - 19 Dec 2007 01:03 GMT
--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--

Signature
Mark L. Ferguson
e-mail subject line must include "QZ" or it's deleted
Holiday Lights: http://www.geocities.com/marfer_mvp/Xmaslgt.zip
.
>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
[quoted text clipped - 3 lines]
>
> Any input would be appreciated...