action_if_folder_exists.htm <meta name=layout-height content=2029>
If Folder Exists Action
<AMIFFOLDEREXISTS ACTION="text [options]" FOLDER="text" EXCLUDE="text" ISNEWERTHAN="datetime" ISOLDERTHAN="datetime" ATTRFILTER="text [attribute mask]"/AMIF>
Causes the steps following this action to execute if the specified folder is in the specified state. If not, execution follows the next Else or End If action, whichever comes first. Wildcards can be used.
To check if a folder exists (or not) and take conditional action depending on the result.
Specifies the type of check to be performed..
The available options are:
exist: The IF block will be executed if the folder exists.
not_exist: The IF block will be executed if the folder does not exist.
Specifies the folder to check.
If a wildcard is specified in filename, causes the action to not check folders matching the mask(s) specified. Filenames or wildcard ( e.g. * or ? ) masks may be used, multiple entries may be specified by separating them with the | symbol (e.g. *.txt|*.bak)
If a wildcard is specified in the foldername, causes the action to check folders only if the source is newer than the date/time specified. If parameter is left blank or not included, the date of the files will be ignored.
If a wildcard is specified in the foldername, causes the action to check folders only if the source is older than the date/time specified. If parameter is left blank or not included, the date of the files will be ignored (excluding "Only if newer" [ISNEWER] parameter).
This group of settings causes the action to filter which folders are checked based on the attribute settings of the folders. In visual mode, a group of controls are provided to assist in the selection of this parameter.
In markup mode, build a single text item must be specified that contains the attributes of the folders you wish to check.
This action includes the Description tab for entering a custom step description.
More on setting custom step description
This action also includes the standard Error Causes and On Error failure handling options/tabs.
More on Error Handling Options
All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.
More on variables
More on expressions
More on the expression builder
NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.