08-04-2011 08:27 AM
Hi there
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
08-04-2011 08:33 AM
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.
08-06-2011 08:12 AM
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 ?
08-07-2011 12:12 AM
What is wronge with these VIs ?
http://webspace.webring.com/people/og/gtoolbox/dl/DeviceMonitor.zip
I can not load it in LV2010. Why ?
I think this VI could be solution of my problem
Please help
08-07-2011 01:43 PM
.
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.
08-07-2011 01:50 PM
I just came across the same error message from a different thread that explains it.
http://forums.ni.com/t5/LabVIEW/G-Toolbox-for-LabVIEW-8-6/td-p/840513/page/2
08-11-2011 06:48 AM
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
08-11-2011 07:06 AM
Here is a LLB that does more.