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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -