TWC Posted January 6, 2006 Share Posted January 6, 2006 Not certain if this should go here or not. But anyways I recently tried to use DriveGetSerial function to retrieve a serial number of a USB Drive. All worked as expected in development and testing. But when I deployed the application I discovered (lengthy process) that the serial number is not unique to the USB Drive just unique to that USB Drive on that particular PC. When you install the USB Drive on another computer the serial number will be different. I am certain that this NOT an Autoit issue. I just wanted to post this for the benefit of any others that are troubleshooting their script and searching the forum. Any workaround will be appreciated. Link to comment Share on other sites More sharing options...
BigDod Posted January 7, 2006 Share Posted January 7, 2006 Not certain if this should go here or not. But anywaysI recently tried to use DriveGetSerial function to retrieve a serial number of a USB Drive. All worked as expected in development and testing. But when I deployed the application I discovered (lengthy process) that the serial number is not unique to the USB Drive just unique to that USB Drive on that particular PC. When you install the USB Drive on another computer the serial number will be different.I am certain that this NOT an Autoit issue. I just wanted to post this for the benefit of any others that are troubleshooting their script and searching the forum. Any workaround will be appreciated.You ask for a workaround but give no indication of what you wish to acheive.If you want to make it that the program will not work unless a particular USB drive is used you could place a hidden file on the drive and check for its existance. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
TWC Posted January 7, 2006 Author Share Posted January 7, 2006 You ask for a workaround but give no indication of what you wish to acheive.If you want to make it that the program will not work unless a particular USB drive is used you could place a hidden file on the drive and check for its existance.Your right and your right.THANX Link to comment Share on other sites More sharing options...
CyberSlug Posted January 7, 2006 Share Posted January 7, 2006 DriveGetLabel might be tied to the drive rather than the PC.... you can also use DriveGetFileSystem and DriveSpaceTotal since that info is unlikely to change. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now