FILE EXISTS: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Command|syntax=FILE_EXISTS <filename>, <status> | {{Command|syntax=FILE_EXISTS <filename>, <status> | ||
|description= | |description=:Check to see if a file exists. | ||
|param1=<filename>|param1_desc={{filename}} | |param1=<filename>|param1_desc={{filename}} | ||
|param2=<status>|param2_desc= | |param2=<status>|param2_desc={{parameter_variable_any_name}} the file status. 1 if the file exists, 0 if it does not. | ||
}} | }} | ||
Latest revision as of 17:26, 13 January 2011
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>
- Name of variable to be set to the file status. 1 if the file exists, 0 if it does not.
Example
- FILE_EXISTS "MyFile.txt", MyVar