| View previous topic :: View next topic |
| Author |
Message |
twhyman
Joined: 07 Dec 2005 Posts: 339
|
Posted: Tue Mar 09, 2010 8:49 am Post subject: iniread fails - allways get "ERROR" Value?! |
|
|
Hi,
When running the following code I get the value "Error":
Genre_Renamer.ahk
| Code: |
Ini_File=%A_ScriptDir%\Genre_Renamer.ini
IniRead, MediaPath, %Ini_File%,Settings,Media_Path
msgbox, %MediaPath%
|
Genre_Renamer.ini
| Code: | [Settings]
Media_Path=d:\series |
I just don't get it why I get the error value of iniread....
what am I doing wrong!? _________________ (\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
|
|
| Back to top |
|
 |
Murx Guest
|
Posted: Tue Mar 09, 2010 8:57 am Post subject: |
|
|
| Is it the same if you hard code the path? |
|
| Back to top |
|
 |
twhyman
Joined: 07 Dec 2005 Posts: 339
|
Posted: Tue Mar 09, 2010 9:02 am Post subject: |
|
|
what do you mean hard code the path?
If you mean ini path, then yes the same error. _________________ (\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
|
|
| Back to top |
|
 |
Murx Guest
|
Posted: Tue Mar 09, 2010 9:54 am Post subject: |
|
|
Working fine for me!  |
|
| Back to top |
|
 |
wooly_sammoth
Joined: 12 May 2009 Posts: 634 Location: Gloucester UK
|
Posted: Tue Mar 09, 2010 10:17 am Post subject: |
|
|
Also works fine for me.
(I saved both the ini and the script to my desktop |
|
| Back to top |
|
 |
twhyman
Joined: 07 Dec 2005 Posts: 339
|
Posted: Tue Mar 09, 2010 10:28 am Post subject: |
|
|
Hi,
Found the problem.
The ini file is in UTF-8 format, Revreting it back to ANSI solved the problem.
I will post a bug in AHK_L post.
Thanks for helping,
Twhyman _________________ (\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
|
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Tue Mar 09, 2010 10:30 am Post subject: |
|
|
| twhyman wrote: | | The ini file is in UTF-8 format, Revreting it back to ANSI solved the problem. I will post a bug in AHK_L post. | Already discussed, see the various posts/solutions about it. Edit: and of course include the fact you use AHK_L next time  _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
|