11-14-2008 01:03 PM
I was wondering whether it was possible to s it possible to locate the CD or DVD drive with Labview.
My application kinda needs to copy files off the cd drive onto the computer but i don't know how to locate the cd drive
thanks
11-14-2008 02:07 PM
I'll add some more information about our problem. We would like to detect if a particular drive letter is a CD or DVD drive. The functionality should be similar to the following DriveInfo member in C#.
http://msdn.microsoft.com/en-us/library/system.io.driveinfo.drivetype.aspx
It can tell if a drive letter is a CDrom, Fixed, Network, Removable, Unknown, etc... drive.
I have searched the Advanced File VIs and Function for suitable functions and the GetVolumeData VI is very close (and we could probably detect drives with no free space). However, I wonder if there are any other VIs that can help.
Another example is the following:
http://binaryworld.net/Main/CodeDetail.aspx?CodeId=917
Thanks in advance,
11-14-2008 03:13 PM - edited 11-14-2008 03:16 PM
Well, if you have a .NET solution that seems pretty easy. You can also try to find it by label rather than by drive, as shown in these examples.
EDIT: Or, you can use this little VI.
11-15-2008 10:43 AM
11-15-2008 11:01 AM
Here:
http://forums.lavag.org/how-to-find-drive-letter-of-usb-memorystick-t12427.html
11-27-2008 06:37 AM
I used the 'Get volume info' function to check the free space of the cd and it seems to work fine for now,
thanks