Sign in to follow this  
Followers 0
markd89

Current directory of script EXE

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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"

Share this post


Link to post
Share on other sites

Thanks, that did it!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0