Although it's not automatic (less professional?) you could display a panel asking the user for their CDROM drive letter. Then prepend their response to a string var that you use to play the AVIs.
Just a rough idea:
String AVImovie = " "; // 32 spaces. String DriveLetter =" "; // A single space String AVI01 = "://AviDir//Intro1.avi" <Get user input to DriveLetter> str_copy(AVImovie, ""); // set to null str_cat(AVImovie,DriveLetter); // add the drive letter str_cat(AVImovie, AVI01); add the path & filename.
play_moviefile(AVImovie);
I don't know if this will work....
But there has to be a better way...
Re: .AVIs playing from CD-ROM#8798 04/18/0209:3304/18/0209:33
Hi, A better way would be to use the new file I/O functions, to scan the drives for a dummy file in your AVI Directory structure, once you've found the file, you know where to play the AVI's from. The handle to the file is 0, if it can't be openned.
Jethro.
Re: .AVIs playing from CD-ROM#8799 04/20/0201:4504/20/0201:45
I think Michael may already have this wrapped up for you, but, I believe most applications either write to the registry or an Ini file during the installation as to where it is being installed FROM .. this is how they get the path to these files.
Popular media is the opiate of the masses.
Think for yourself.