Welcome! Log In Create A New Profile

Advanced

USB function to detect drive name

Posted by sivakrith 
USB function to detect drive name
August 03, 2019 10:01AM
Hello,

Windev 22

With USBFunction I could get details of USB Vendor, USB Product, USB Rev, USB Serial.

How to get the drive name assigned for the usb attached ?

Happiness Always
BKR Sivaprakash
Re: USB function to detect drive name
August 03, 2019 10:28AM
Hi,

unfortunately, PC Soft did not finish the USB-thing, like others, work stopped about 2/3-way.
However, it is possible to find the drive numbers of USB-sticks only - not USB-harddrives!!
I enclose a small WINDEV project showing how it is done:
www.windev.at/downloads/USB_Drive.zip

If you want a full-blown exploration of the USB drives of a computer then you should look into NirSoft's USBDeview [www.nirsoft.net] which is open source. Perhaps you could either "steal" part of the code or call the program from a WINDEV program and use the content of the table. Good luck!

Kind regards,
Guenter Predl
office@windev.at



Edited 2 time(s). Last edit at 08/03/2019 04:40PM by gpredl.
Re: USB function to detect drive name
August 05, 2019 10:45AM
Thanks Guenter Predl

That's what I was thinking, get the drive name by matching serial number. Your project helped me to finish the work earlier.
Thanks
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: