Duke3315 Posted January 28, 2010 Posted January 28, 2010 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.
Fire Posted January 28, 2010 Posted January 28, 2010 (edited) If FileExists("sound.au3") Then MsgBox(64,"File exist","File Exist") Else MsgBox(64,"File not found","File not found",3) Exit EndIfAnother:If FileExists("sound.au3") = 0 Then MsgBox(64,"File not found","File not found",3) Exit Else MsgBox(64,"File exist","File Exist") EndIfEDIT: Duke3315 Welcome to autoit:) Edited January 28, 2010 by Sh3llC043r [size="5"] [/size]
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