Knowledge Base
Home > How To > How To timestamp downloads
Article 2608
How To timestamp downloads
Sometimes it is necessary to dynamically change the destination file/folder name. For example if you have a backup task scheduled which should put the files into a different folder each time it is started. The solution is to use a transfer queue item script from the SmartFTP SDK.
In this example we setup a backup task which downloads a folder from a server to a local folder:
- Schedule a transfer as describe in the following article:
http://www.smartftp.com/support/kb/how-to-schedule-a-transfer-f145.html - Right-click on the newly created item in the Transfer Queue. Select Properties from the context menu.
- Go to the Script dialog
- Install the SmartFTP SDK
- In the script input box, select the Samples\TransferQueueItem\JScript\DynamicDestination.js script from the SmartFTP SDK.
- Edit the DynamicDestination.js to change the formatting of the final destination path.
Keywords
timestamp
Related Articles
What do you think about this topic? Send feedback!

