Jump to content

How does filefind works?


PantZ4
 Share

Recommended Posts

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 by Mr. Zero
Link to comment
Share on other sites

  • Developers

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 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

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 by BugFix

Best Regards BugFix  

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...