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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -