Post Transfer Actions

Post transfer actions let you further process a source file after the transfer has been completed. If you are doing an upload, then the source file is in a local folder, and the post transfer action will be processed on the local machine. If you are doing a download, then the source file is in a remote folder, and the post transfer action will be processed on the remote server, if the server allows it.

The following post transfer actions are available from the command line:

Deleting source files after transfer

wsftppro -s local:c:\sports\*.doc -d robert!border:/pub/drop/ -delete

When the transfer is complete, the source files (c:\sports\*.doc) will be deleted.

Renaming source files after transfer has completed:

wsftppro -s local:c:\sports\*.doc -d robert!border:/pub/drop/ -rename [dd][mm][yy][hh][OnlyName].[OnlyExt]

When the transfer is complete, the source files (c:\sports\*.doc) will be renamed, which if transferred on Jan 15, 2009 at 11:00 am, will be renamed with the date and time prefixed to the original file name and extension; for example: c:\sports\tartan.doc would be renamed c:\sports\01150911tartan.doc

Moving source files after transfer has completed:

wsftppro -s local:c:\sports\*.doc -d robert!border:/pub/drop/ -move c:\sports\archive\

When the transfer is complete, the source files (c:\sports\*.doc) will be moved to the directory: c:\sports\archive\

Renaming and moving source files after the transfer has completed:

wsftppro -s local:c:\sports\*.doc -d robert!border:/pub/drop/ -rename [dd][mm][yy][hh][OnlyName].[OnlyExt] -move c:\sports\archive\

When the transfer is complete, the source files (c:\sports\*.doc) will be renamed, which if transferred on Jan 15, 2009 at 11:00 am, will be renamed with the date and time prefixed to the original file name and extension; for example: c:\sports\tartan.doc would be renamed c:\sports\01150911tartan.doc. The source files are then moved to the directory: c:\sports\archive\