"Local" .ini file?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
cyber_author
Newbie
Posts: 10
Joined: Sun Aug 07, 2005 10:42 am

"Local" .ini file?

Post by cyber_author » Sat Aug 27, 2005 8:05 am

I have a program (the one I have been working on while asking all the questions!) that saves and loads configurations to an ini file..... now... here is my question... I want to use a "local" .ini file in my EditIniFile> statement instead of using a full path... ex...

Current:
EditiniFile>C:\myfolder\testini.ini,settings,name,fred

Desired:
EditiniFile>testini.ini,settings,name,fred

I thought it would be just as simple as using my Desired example, but it never changes the .ini file. The program is not "installed" into a specific folder, so unless someone has it at root level (i.e. NOT on their desktop), the program gives an error in finding the .ini file.

Any suggestions or am I just dense as hell?

cyber_author
Newbie
Posts: 10
Joined: Sun Aug 07, 2005 10:42 am

Post by cyber_author » Sat Aug 27, 2005 8:14 am

I was able to successfully save a "local" config by putting it in a folder within my programs folder and reference it that way. Think I will stick with that.

Example:

EditIniFile>resources\testini.ini,settings,name,fred

that worked out fine, so I will probably stick with that, but still, anyone got an idea on my original problem?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Aug 27, 2005 9:13 am

EditIniFile>%SCRIPT_DIR%\testini.ini,settings,name,fred
MJT Net Support
[email protected]

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts