Knowledge Base

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

Created 31 Oct 2009
Modified 07 Apr 2012

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