FILE EXISTS

From Macros Wiki
Revision as of 14:56, 19 August 2010 by ConnerO (talk | contribs)
Jump to navigationJump to search

Up

Command

FILE_EXISTS <filename>, <status>


Check to see if a file exists.

Parameters

<filename>
Filename as either text in double quotes, or a text variable.
If the filename does not contain full path information, then the file will be opened in the same folder as the macro.
<status>
Variable to set to the file status. 1 if the file exists, 0 if it does not.

Example

FILE_EXISTS "MyFile.txt", MyVar