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
Post a Comment