Knowledge Base

Home > Features > Post Process Plugin

Created
Modified

Print Article

Article 2729

Post Process Plugin

Howto

This feature is available in the Enterprise Edition of SmartFTP.

Enable Plugin in Global Settings

  1. Start SmartFTP
  2. Go to the menu: File - Settings
  3. The settings dialog opens
  4. Go to the Transfer - Queue - Plugins dialog
  5. Select and enable the Post Process plugin the list of plugins
  6. Click OK to save the changes

Enable Plugin in Favorite Settings

  1. Go to the Favorite Properties
  2. Go to the Transfer - Queue - Plugins dialog
  3. Select and enable the Post Process plugin the list of plugins
  4. Right-click on the plugin, select Properties
  5. Select the Executable
  6. Enter the Arguments that are passed to the executable.
  7. Click OK to save the changes

Examples

If you want to run a batch file (.cmd, .bat) enter the following:
Executable: C:\Windows\System32\cmd.exe
Arguments: /C "c:\path\to\your.cmd"

To run a powershell script:
Executable: C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe
Arguments: -File "c:\path\to\your.ps" {Operation} {Type}

Variables in Arguments

You can use the KB: Transfer Queue Item Variables for the command line arguments.

Example

{Operation} {Type} "{Destination.Path}"

For a copy operation of a file to c:\temp\test.txt, the variables will be replaced as following:
1 1 "C:\temp\test.txt"

The first 1 stands for the {Operation} which is Copy (numeric: 1). The 2nd 1 is for {Type} which is File (numeric 1).

Keywords
plugin

Related Articles


What do you think about this topic? Send feedback!