Jump to content
Sign in to follow this  
Smiley357

Is there something like �if exist� in autoit?

Recommended Posts

Smiley357

Is there something like if exist in autoit?

Share this post


Link to post
Share on other sites
JFee

If what exists?


Regards,Josh

Share this post


Link to post
Share on other sites
Clay

If you are trying to checks if a file or directory exists

FileExists ( "path" )

Example:

If FileExists("C:\autoexec.bat") Then

MsgBox(4096, "C:\autoexec.bat File", "Exists")

Else

MsgBox(4096,"C:\autoexec.bat File", "Does NOT exists")

EndIf

Otherwise I am not sure what you are trying to determine exists or not

Share this post


Link to post
Share on other sites
Smiley357

Thanks. I did a search in the autoit help but only looked for if and exist and neither give me fileexist.

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  

×