Jump to content
Sign in to follow this  
Duke3315

Quick Question

Recommended Posts

Duke3315

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.

Share this post


Link to post
Share on other sites
Fire

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]

Share this post


Link to post
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
Sign in to follow this  

×