File / folder Action

When a Task contains more than one Action, it is possible to pass the data returned by an Action to some subsequent Action. Instead of using fixed / manual values, use Variable Wizard for filling in particular Action parameter field automatically.

Variable Wizard - File / Folder Actions

When an Action is preceded by a File / Folder Action, Variable Wizard can automatically provide the following values:

VariableDescription
Last destination fileReturns destination filename with full path of last file that was processed by specified Action (e.g. if file is copied to another folder, variable contains file's new name and location).
Last source fileReturns source filename with full path of last file that was processed by specified Action (e.g. if file is copied to another folder, variable contains file's initial name and location).
List of affected (copied, renamed, etc.) filesReturns the list of destination filenames with full path of all files processed by specified Action (e.g. if upon some event all files in particular folder is copied to another location, variable contains a list of new names and locations).
List of source filesReturns the list of source filenames with full path of all files processed by specified Action.
List of source, destination filesReturns a list containing both initial file names with full path and new file names with full path.
Number of affected filesReturns a numeric value indicating how many files were processed by a File Action.
Action completion statusReturns text value containing completion status (i.e., "completed successfully" or "completed with errors") of specified Action.

When an Action is preceded by Write to File or Read from File Actions, Variable Wizard can automatically provide the following values:

VariableDescription
File contentReturns contents retrieved when reading the file.
Number of bytes read / writtenReturns numeric value that indicates number of bytes read / written by Write to File or Read from File Actions.
Last fileReturns file name with full path used in last execution of Write to File or Read from File Actions.
Additional notes:
  • If file / folder Action is configured to process multiple files by using file masks / wildcards and error occurs, then Last file variable may repeat the name of file on which error occured.

If you have any questions, please do not hesitate to contact our support team.

© 2001–2017 Febooti Ltd.