LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to locate the CD or DVD drive

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

0 Kudos
Message 1 of 6
(3,262 Views)

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,

 

 

0 Kudos
Message 2 of 6
(3,246 Views)

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.

Message Edited by smercurio_fc on 11-14-2008 03:16 PM
Message 3 of 6
(3,236 Views)
Someone also posted examples to the LAVA forums in the last few days (both .NET and calling the kernel API) to check the type of a drive.

___________________
Try to take over the world!
Message 4 of 6
(3,207 Views)

Here:

 

http://forums.lavag.org/how-to-find-drive-letter-of-usb-memorystick-t12427.html


___________________
Try to take over the world!
Message 5 of 6
(3,203 Views)

I used the 'Get volume info' function to check the free space of the cd and it seems to work fine for now,

 

 

thanks

0 Kudos
Message 6 of 6
(3,074 Views)