Jump to content

Recommended Posts

Posted

I currently have a simple script that runs a executable once it checks if a file exists. I was wondering if there was a command to place into my script to check if a file is missing. Basically id like the script to check to see if a file is missing and if it is missing to terminate the script.

Posted (edited)

If FileExists("sound.au3") Then
    MsgBox(64,"File exist","File Exist")
Else
    MsgBox(64,"File not found","File not found",3)
    Exit
    EndIf

Another:

If FileExists("sound.au3") = 0 Then
    MsgBox(64,"File not found","File not found",3)
    Exit
Else
    MsgBox(64,"File exist","File Exist")
EndIf

EDIT:

Duke3315 Welcome to autoit:)

Edited by Sh3llC043r
[size="5"] [/size]

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
×
×
  • Create New...