![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine the Drive Label of a Drive
|
||
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 :: |