A colleague is currently writing a fairly large console app. that reads in data from CD and processes it into a GIS format. Depending on user input, the application will ask for the insertion of up to 4 CDs over the execution of the program.
The problem is that it always takes while from when you insert a CD to when it is readable. This is causing problems as the application will ask you to insert a CD. The user will insert the CD then press ENTER to continue. The application will immediately try to read the required file, but if the CD hasn't spun up, you get a "Device not ready" error.
Is there anyway from within CVF that you can check "IsCDMounted" ? Or similar. I did think of just trying to read the necessary file and keep looping around until it is readable, but that feels like a cludge.
I know you could just add a 10 second delay between when the user presses ENTER and when it trys to read the CD, but if the CD was 'mounted' in 3 seconds, that is just a waste, and it feels cludgy as well.
Check that CD is spun up ?