PantZ4 Posted October 31, 2006 Share Posted October 31, 2006 (edited) Why does this script not work;Search for the .ini settings. $ini = FileFindFirstFile(@workingdir & "\settings.ini") If @error = 1 Then MsgBox(48,"File missing.","settings.ini is missing!") Exit EndIf FileClose($ini)oÝ÷ ØZ½éèµÊÞj×è§ø¥{'²Ø¥+pYg¢ÛÊØ^èZ²©¥éÝiê뢴ájy2¢áÒ!j÷Ê-¯'jëh×6If @error = -1 Then Edited October 31, 2006 by Mr. Zero Link to comment Share on other sites More sharing options...
Developers Jos Posted October 31, 2006 Developers Share Posted October 31, 2006 (edited) You need to test the returned value , not @error: ;Search for the .ini settings. $ini = FileFindFirstFile(@workingdir & "\settings.ini") If $ini = -1 Then MsgBox(48,"File missing.","settings.ini is missing!") Exit EndIf FileClose($ini) Edited October 31, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BugFix Posted October 31, 2006 Share Posted October 31, 2006 (edited) Why does this script not work;Search for the .ini settings. $ini = FileFindFirstFile(@workingdir & "\settings.ini") If @error = 1 Then MsgBox(48,"File missing.","settings.ini is missing!") Exit EndIf FileClose($ini)oÝ÷ ØZ½éèµÊÞj×è§ø¥{'²Ø¥+pYg¢ÛÊØ^èZ²©¥éÝiê뢴ájy2¢áÒ!j÷Ê-¯'jëh×6If @error = -1 ThenoÝ÷ Ûú®¢×ºÚ"µÍÈ ][ÝÔ]ÈLHYÜØØÝË][ÝÈÕÜÈLBÔÙXÚÜH[HÙ][ÜËÌÍÚ[HH[Q[Ý[JÛÜÚ[Ù [È ][ÝÉÌLÜÙ][ÜË[I][ÝÊBY ÌÍÚ[HHLH[ÙÐÞ ][ÝÑ[HZÜÚ[Ë][ÝË ][ÝÜÙ][ÜË[HÈZÜÚ[ÉÌÌÎÉ][ÝÈ [È [ÈÜB^][Y[PÛÜÙJ ÌÍÚ[J Someone was faster... Edited October 31, 2006 by BugFix Best Regards BugFix Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now