Checks for the existence of a file or folder.
Deprecated: These commands are not recommended for use in new scripts. Use the FileExist function instead.
IfExist, FilePattern IfNotExist, FilePattern
The path, filename, or file pattern to check. FilePattern is assumed to be in %A_WorkingDir% if an absolute path isn't specified.
FileExist(), Blocks, Else, File-loops
IfExist, D:\Docs\*.txt MsgBox, At least one .txt file exists.