U Ulysses New Member Messages 2 Nov 23, 2017 #1 In linux I would type "lsusb" and it would list all usb devices plugged in. From this a "grep" would detect if a known usb device is connected. How do you do the same from the command line in windows, eg in a batch file?
In linux I would type "lsusb" and it would list all usb devices plugged in. From this a "grep" would detect if a known usb device is connected. How do you do the same from the command line in windows, eg in a batch file?
KYHI Well-Known Member Pro User Messages 2,779 Nov 23, 2017 #2 Code: wmic diskdrive where "MediaType='Removable Media'" get Index,Model,Size or to pipe to a txt file on desktop Code: wmic diskdrive where "MediaType='Removable Media'" get Index,Model,Size >"%userprofile%\desktop\RemovableMedia.txt"
Code: wmic diskdrive where "MediaType='Removable Media'" get Index,Model,Size or to pipe to a txt file on desktop Code: wmic diskdrive where "MediaType='Removable Media'" get Index,Model,Size >"%userprofile%\desktop\RemovableMedia.txt"
U Ulysses New Member Messages 2 Nov 24, 2017 #3 Thanks but the device I want to test for is not a usb drive but a usb adapter (ethernet to usb). How do you test for this?
Thanks but the device I want to test for is not a usb drive but a usb adapter (ethernet to usb). How do you test for this?