I am in VB6 development environment working on a project.
The project needs to open a 'setup.ini" file, whose location is supposed to be in the same directory as the (future) executable.
When the executable runs, if no location directory is mentioned, the application will first look for the "setup.ini" file in the same directory where the application is.
In the VB6 development environment, it seems that at RUN time, VB looks somewhere else and it cannot find it. I think it looks into the last directory when it looked before (previous location kept in the memory?).
Is there any way that I can open the file without having to mention a directory (because that directory will not be valid with the executable, which can be in ANY directory).
In short, I would like to be able to say <<Open “setup.ini” for input as 1>>, and VB will look into the directory where the project files are.
Please advise
Thank you