The Rename Mask lets you create a mask, or rule, that WS_FTP will use to rename a file, after the file transfer completes. The file name of the original file is compared to the mask, and the new file name is generated. In this mask, you can enter any data you want to include in the file name, such as a store number, or some other identifier.
You can also use macros, which are variables that you can use to add data to the file name, for example the date and time the file was transferred file. You can select from the following macros to create the File Rename Mask.
If you want to retain the original file name and extension, you would enter [OnlyName].[OnlyExt]. Whether or not you retain the original name or extension, you need to include the period between the file name and extension.
For example, if you want to upload a file named inventory.pgp, then rename the file in the destination directory with the upload date and time, you could use macros to create the following File Rename Mask:
[mm][dd][yy][hh][OnlyName].[OnlyExt]
which, if transferred on January 15, 2009 at 7:00 AM, would rename the file to: 01150907inventory.pgp
You do have to enter the period that separates the file name from the extension.