PDA

View Full Version : Detect Drive Letter when CD is inserted!


rvargas
04-19-2007, 07:29 AM
I'm building a cd with EXE files, and I got the running an external program part working, but now I came to think that when I build the cd in my computer the cd drive it's the E:\ drive, and the batch files point to that drive letter to open the exe file, what will happen if it's inserted on a computer with a different drive letter?? It wont work!! :confused:

Is there any way to find the drive letter for the CD when it's inserted? so that the batch file (which points to the exe file) has the correct drive letter.

any help is appreciated,

Thanks

ryancbutler
04-20-2007, 04:36 PM
Yes, but it costs, unless you want to use an old school method of a bin method approach, which I've never done.

Purchase Zinc and you should be able to eliminate this problem.

http://www.multidmedia.com/software/zinc/

rondog
04-24-2007, 12:31 AM
you shouldnt need to do this if I am understanding you correctly. You should be using relative paths rather than absolute. ie: data/swfs/myswf.swf rather than E:/myproject/data/swfs/myswf.swf