I am not sure this is the right forum for my question. Please redirect me if I am in the wrong place.
I have an AIR app that will be installed from a CD. The client will be changing certain data (like images and video files) regularly and wants to be able to simply write a cd with the new files in a folder and the AIR app install.
I have searched high ad low for ways to read files from a CD. I could do this if I knew the path, but on each system it is different.
Is there anything which can tell me what the path to the CD drive is or a way to package AIR so that when it installs it looks for a directory on the CD it is installing from and copies it to the AIR application directory?
Any help is welcome!
Thanks in advance,
Hi - it looks like you can find the CD drive using the getStorageVolumes() method of StorageVolumeInfo:
So you'd iterate through all the storage volumes, and for the ones that are removable (isRemovable property), check for the existence of some file you know will be on your CD (a unique name), and you would then know that is your install CD.
Thanks for this... looks promising.
I have been trying out the File.getDirectoryListing() method and have had some joy. I will compare the 2 methods and see which performs better. I like the isRemovable property which I haven't yet noticed with the File object.