markd89 Posted March 12, 2008 Posted March 12, 2008 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
weaponx Posted March 12, 2008 Posted March 12, 2008 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"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now