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:
After the file transfer is completed, delete the source file(s) from the folder.
where Rename Mask includes the characters and any macros to use in renaming the file.
After the file transfer is completed, rename the source file(s) in the folder.
After the transfer has completed, moves the source file(s) to the specified directory on the source machine.
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\