How do I refer to the current directory from which compiled exe is running?
Basically, i have a mycfg.ini file in the same directory as which the macro is. I would like it to refer to it, for example ./mycfg.ini.
How do I do that in Macro Scheduler?
How to refer to current directory?
Moderators: JRL, Dorian (MJT support)
Re: How to refer to current directory?
Not sure if %SCRIPT_DIR% meets your requirement.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: How to refer to current directory?
As Armsys says - SCRIPT_DIR is what you need:
https://www.mjtnet.com/blog/2014/11/17/ ... explained/
https://www.mjtnet.com/blog/2014/11/17/ ... explained/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?