Monitor File Changes

Monitor one or more files in a designated folder for specific events, with the option to include subfolders:

  • Monitoring more than one file requires that the files are named according to a pattern that can be represented using asterisks (*) as wildcards.

  • The wizard will monitor the specified files until:

    • One of the defined events occurs; or

    • The command reaches the timeout limit you have specified

  • Events to be monitored can include one or more of the following:

    • File created or renamed (to match the specified pattern)

    • File modified

    • File deleted

This command can be particularly useful if a wizard requires that a certain file be added or updated prior to proceeding.

  1. Enter the full path of the top-level folder in which files should be monitored; and

    Indicate whether or not to also monitor files in subfolders.

  2. To monitor a single file: Enter the name of the file to monitor; or

    • To monitor multiple files: Enter a naming pattern for the files to monitor, using asterisks (*) as wildcards to represent one or more characters in the file name, for example:

      • The pattern file*.txt will monitor file.txt, file1.txt, file48.txt, file1948.txt, etc.

      • The pattern file.* will monitor file.txt, file.docx, file.xlsx, file.png, etc.

  3. Select one or more events for which to monitor.

  4. Enter the name of the variable into which to place the file path of the new, renamed, modified, or deleted file.

  5. Indicate if the wizard should stop monitoring (i.e., timeout) after a certain number of minutes.

  6. Instruct the wizard how to handle any errors encountered. Read more about error handling.