Jump to content

Recommended Posts

Posted

Hi all,

I want to have an INI file in the same directory as my compiled script. I'd like the EXE to detect where it is running from so I know where to open the INI from.

I think there's a WINAPI way to know where the EXE is running from, but I'm hoping for an easier suggestion..

Thanks!

Mark

Posted

Just use the filename itself when you use IniRead() or most other functions. i.e. "myfile.ini"

This is usually the same as using @ScriptDir & "\myfile.ini"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...