Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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