open file in the same directory as the application

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


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion