I was looking for how to detect a USB Flash Drive name in Labview
appearently every time i insert USB Flash Drive in a computer, windows assign it a different name
once "J:" and sometimes "M:"
Is there anyway to obtain USB Flash Drive name programmatically in Labview ?
Because in my program an user shouldn't be able to access HDD Drives except his USB Flash Drive (for inserting some file ...)
thank you and excuse me for my poor english
This question has been asked before several times. Did you try a search? http://forums.ni.com/t5/forums/searchpage/tab/message?filter=location&location=Board%3A170&q=detect+...
Try the solutions/suggestions already posted. If they don't work then you can come back and indicate why they are not adequate.
Thank you about the link but they don't work
I still have the problem
Is there any Windows API based solution?
or anything else ?
I was able to get the demo.vi to load, but it could not load the other two because there is no block diagram associated with those. I'm not sure why this is. I haven't had any issues with other llbs before.
I just came across the same error message from a different thread that explains it.
Finally found the solution
By looking at MSDN. There is a function named "GetDriveTypeA" in Kernel32
Here is the program. It finds USB Flash Drive letter or else leaves it empty