vbscript to change drive letter -


want change drive letter of volumes. once script run should show partitions in pop box , ask new drive letters.

used below code changing d q

strcomputer = "." set objwmiservice = getobject("winmgmts:" _ & "{impersonationlevel=impersonate}!\\" & strcomputer & "\root\cimv2")  set colvolumes = objwmiservice.execquery _ ("select * win32_volume name = 'd:\\'")  each objvolume in colvolumes objvolume.driveletter = "q:" objvolume.put_ next     


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -