Hi!
When i use
ReadIniFile>.\modalitet\I80914,worklist,AET,VAET
I get Inifile in Readinifile does not exist.
My 7.3 compiled inireader.exe is in the same folder as the folder named modalitet containig the I80914 ini file.
Using a Absolute Path(c:\tjo\modalitet\I80914) works. But I whant to have a relative.
Thanks!
How to use ReadIniFile with a relative path?
Moderators: Dorian (MJT support), JRL
-
- Pro Scripter
- Posts: 149
- Joined: Tue Mar 23, 2004 9:11 pm
-
- Pro Scripter
- Posts: 149
- Joined: Tue Mar 23, 2004 9:11 pm
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
If I were you I'd get the current path with CWD - the current working directory could change depending on what else the script has done, or whether the script is being run from Macro Scheduler or as an executable. Use the built-in CWD variable.
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?
Also, since it was mentioned by Henk, the file name for an INI file used by ReadIniFile> is not an issue. The name can be any valid file name. See this thread for a more complete explanation. Particularly, Bob Hansen's second post.
Later,
Dick
Later,
Dick
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Yes, SCRIPT_DIR should be used where the INI file is always in the same folder as the script.
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?