Knowledge Base

Home > How To > How To move items to another folder after transfer

Created
Modified

Print Article

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

  1. Setup a scheduled transfer as described in
    KB: How to schedule a transfer
    KB: How to selectively transfer files
  2. Download and install the SmartFTP Client SDK
  3. Right-click on the transfer queue item, select Properties from the context menu
  4. Go to the Script dialog
  5. Click on the Browse button
  6. Select the MoveAddedSourceItemsToFolder.js script from the C:\Program Files\SmartFTP SDK\Samples\TransferQueueItem\JScript folder
  7. Enter the folder where you want to move the files to into the Arguments input field. e.g. C:\Archive

For Example 2

  1. Setup a scheduled transfer as described in
    KB: How to schedule a transfer
  2. Download and install the SmartFTP Client SDK
  3. Right-click on the transfer queue item, select Properties from the context menu
  4. Go to the Script dialog
  5. Click on the Browse button
  6. Select the MoveSourceItemToFolder.js script from the C:\Program Files\SmartFTP SDK\Samples\TransferQueueItem\JScript folder
  7. Enter the folder where you want to move the files to into the Arguments input field. e.g. C:\Archive

Keywords

Related Articles
icon How To schedule a transfer


Please choose 1 to 5 whether this article solves your problem.

1 No Help at all

5 Problem Solved

Saving...
Thank you for your feedback.

What do you think about this topic? Send feedback!