Subject Re: [firebird-support] Path to database on CD
Author Daniel Rail
Hi,

At August 4, 2004, 23:28, Don Gollahon wrote:

> I should add that the app uses an INI file for the path in the production
> version. I would rather not change the operation of it just so it can be
> viewed on CD unless I have to.

You probably will have to. But, it is also possible to know if the
drive where the application is running from is a CD drive or not.
Take a look at JCL's function GetDriveTypeStr. So, if the drive type
is a CD drive, then you can use Florian's suggestion, otherwise use
the INI file. This way you wont need to have 2 separate executables.

--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)