Tech Support > Microsoft Windows > Customizing > Shortcut to Disk Management
Shortcut to Disk Management
Posted by Rick Altman on December 18th, 2007


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



Posted by Pegasus \(MVP\) on December 18th, 2007



"Rick Altman" <rick.a@NOSPAMaltman.com> wrote in message
news:%23b%23we1cQIHA.1208@TK2MSFTNGP03.phx.gbl...
You can create a shortcut to diskmgmt.msc.



Posted by Terry R. on December 18th, 2007


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.

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

Posted by Mark L. Ferguson on December 19th, 2007


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


Posted by Rick Altman on December 19th, 2007


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


Posted by Terry R. on December 19th, 2007


On 12/18/2007 10:41 PM On a whim, Rick Altman pounded out on the keyboard

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.


Similar Posts