Error in ReadINIFile Command

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Error in ReadINIFile Command

Post by fightcancer » Wed Jul 18, 2007 8:14 pm

Occasionally I get the error message "error in ReadINIFile command" when running my macro. Any ideas?

Thanks,

FC

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Jul 18, 2007 8:18 pm

Where's my crystal ball .. nope, can't find it. Perhaps you could send your script code and a log file instead .... ? ;-)
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Wed Jul 18, 2007 10:31 pm

My crystal ball was in the closet... behind the Atari. It said that if you set a variable that is the same as the section name, to nul, you will get this error.

In other words I created a valid ini file called test.ini at c:\ then ran this script and I saw the error message "error in ReadINIFile command".

Let>section=
ReadIniFile>c:\test.ini,section,entry,var

P.S. The battery just went dead on the crystal ball and I can't find the charger. :roll:

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Post by fightcancer » Fri Jul 20, 2007 10:08 pm

I think that fixed it!

I am using MS to copy a string, find a section in the INI matching the string, and get data from it. Sometimes nothing was copied and the string was null. The notes above would explain my error.

Thanks!!

EDIT: Still no error! Thanks again! (July 30, 2007)

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