Sign in to follow this  
Followers 0
davzell13

Change usb key letter without DriveGetDrive ("REMOVABLE") ?

5 posts in this topic

Hi,

i use the DriveGetDrive Function to detect my usb key, but it doesn't work for some usb hard drive.

I have an usb hard drive which is detected by windows as an hard drive.

DriveGetDrive also detects this usb hard drive like an simple hard drive.

 

How can i do for detect my usb hard driver like an usb peripheral ? 

 

Thank you in advance

 

PS; excuse my english


 

Share this post


Link to post
Share on other sites



Try using the the DriveGetType function with the $DT_BUSTYPE operation.  It will return "USB" for USB drives.  

 

Adam

 

Share this post


Link to post
Share on other sites

GreenCan has solved davzell13's problem here: 

Thanks GreenCan 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0