#NoEnv
#SingleInstance force
for Disk in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_DiskDrive where interfacetype = ""USB""")
{
DeviceId := Disk.PNPDeviceID
StringSplit DeviceProperties, DeviceId, \&
SerialNumber := DeviceProperties6 ; The sixth element of the array contains the serial number
MsgBox %SerialNumber%
}
return
D: 를 함수로넘겼을때 D의 고유코드를 리턴받고싶습니다. (지금은 꼽힌 모든USB를 다 가져옵니다.)
추가로 description/VenderID/ProductID도 가져올수있나요? (사례를 원하시면 드릴수있습니다.)
http://www.nirsoft.net/utils/usb_devices_view.html
여기들어가시면 USB정보보는 포터블프로그램이있습니다. 참고!