02-13-2010 10:34 AM
Using CVI 6.0, how can I tell if a particular cd is installed in the cd-drive? It needs to work on any Windows OS.
Thanks for your help.
02-13-2010 03:35 PM
Oh, well... a little bit rude, absolutely not polite, maybe not professional but...
Why not issuing a "dir" command, redirecting output to a file and scanning the file afterwards? It surely will work on any system and with any CVI version and will not imply any painful digging into Windows API command or so...
02-15-2010 01:48 PM
How about using GetFirstFile function?
If you get 0 return value then disc is present otherwise not.
It won't tell you if empty disc is there.