Verify if CD in CDROM and play projector otherwise not

Hello all,

This is my very first post on this website.

I am working on a CD project in flash. I have a main Projector(.exe) file which call other swf files. I compile all these files(.exe and swf) to installable CD which copy all the files on the local hard disk and make a shortcut on the desktop.

Now the problem is that I want to run my .exe file only if CD is in CDROM otherwise it loads another swf(from the local hard disk) which shows the message “please insert the CD and restart the application”. Any help will be very helpful to me.

Thanks in advance.
Harry Kooner.