Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine the Drive Label of a DriveContent of Determine the Drive Label of a Drive.vbsMD5 Hash: 4CA23F46B28DD9ACD2638CFA8559881D |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * From Win32_LogicalDisk Where DeviceID = 'D:'") For Each objItem in colItems Wscript.Echo objItem.VolumeName Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |