Knowledge Base
Home > How To > How To move items to another folder after transfer
Article 2634
How To move items to another folder after transfer
Goal
You would like to move the items after they have been transferred to another folder on the source.
Example 1
You want to upload all files from local folder C:\Upload to a server. After the files have been transferred you want to move them into the C:\Archive folder on your computer.
Example 2
You want to upload a single file on your local computer from C:\Upload\file.pdf to a server. After the transfer completed you want to move this file to the C:\Archive folder on your computer.
Solution
For Example 1
- Setup a scheduled transfer as described in
KB: How to schedule a transfer
KB: How to selectively transfer files - Download and install the SmartFTP Client SDK
- Right-click on the transfer queue item, select Properties from the context menu
- Go to the Script dialog
- Click on the Browse button
- Select the MoveAddedSourceItemsToFolder.js script from the C:\Program Files\SmartFTP SDK\Samples\TransferQueueItem\JScript folder
- Enter the folder where you want to move the files to into the Arguments input field. e.g. C:\Archive
For Example 2
- Setup a scheduled transfer as described in
KB: How to schedule a transfer - Download and install the SmartFTP Client SDK
- Right-click on the transfer queue item, select Properties from the context menu
- Go to the Script dialog
- Click on the Browse button
- Select the MoveSourceItemToFolder.js script from the C:\Program Files\SmartFTP SDK\Samples\TransferQueueItem\JScript folder
- Enter the folder where you want to move the files to into the Arguments input field. e.g. C:\Archive
Keywords
Related Articles
How To schedule a transfer
What do you think about this topic? Send feedback!
