Copying or Moving a File Triggered on Monitor Folder Event and Renamed

You can configure an Event Rule triggered by a Folder Monitor event to copy or move files in the folder and save them with a different name. Refer to Copy/Move File to Host Action for details of defining an Event Rule using the Copy/Move file to host Action.

When you configure an Event Rule to copy/move a file that is triggered on a Monitor Folder event with a rename Condition, use the variable %FS.DST_PATH% instead of %FS.PATH%, and %FS.DST_FILE_NAME% instead of %FS.FILE_NAME%.

If the file is renamed, the new name context is lost to FS.PATH and FS.FILE_NAME, which retains the old path/name, while the new path/name is passed to %FS.DST_PATH% and %FS.DST_FILE_NAME%.

For example, suppose the monitored folder contained a file called Robert.txt and you rename the file Bob.txt:

%FS.DST_FILE_NAME% contains the new value Bob.txt, while %FS.FILE_NAME% contains the old value Robert.txt.

If you want to move the modified (renamed) file, use the DST-based variables as shown below, because they contain the modified values.