If File Exists


This command tests if the selected file exists on the computer.



Note: This command does not support wildcards.




Script Editor > Expand Logic Category > If File Exists




Insert the file path in this field or click on the Browse button to locate the file to test.


Use the search path

Select this option when only inserting a partial file path or only a file name such as test.txt. In this case the macro attempts to locate the file using the Windows search path stored in the Environment variables.


If the Use the Search Path option is not selected and only the file name is inserted, then the macro will look in the Macro Express default folder. Use the Change Default Folder command to set the default folder.