• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

CD-Rom Drive Letter

swany

Junior Member
Hi AnandTech

I have found that I'm able to change a hard Drive Volume's Letter, for example "Drive D" to Drive "Q", using the below vbs script. The reason for changing the drive letters in this way, is connected to an on going project, and as part of a scripted Server 2003 build problem I've logged on this site and many other already.

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & 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

My question is, does anyone know how to make the same kind of script above work against CD Rom drive, rather than an actual hard disk drive

Thanks
Swany
 
Back
Top