File Completion Shell Commands
This feature allows you to execute shell commands every time an individual file or transfer completes.  It can be found in Settings > Transfers > Files.

In all commands, various placeholders are supported as follows:
Placeholder %1 is replaced by a full path to the individual file or transfer folder that has completed, in quotes.
$path is the exact same as %1
$basepath is replaced by the path to location of the individual file or transfer folder that has completed.
$name is replaced by the filename of the individual file that has completed.
$ext is replaced by the extension of the individual file that has completed.

The $path placeholder is equivalent to "$basepath$name$ext"

To specify a command for a specific file extension only, use the .ext: prefix at the beginning of the line.  Multiple file extensions can be separated by a comma.

To specify a command for any individual file, use the file: prefix at the beginning of the line.

To specify a command for a whole transfer only, use the xfer: prefix at the beginning of the line.

Adding the prefix xfer@ delays command processing until the entire transfer completes rather than acting on each file as it completes.  

Per file or per extension

Commands are processed by the system as though they were typed into a local command prompt window.


Example usage (auto-convert incoming .avi file to .mp4 format):

.avi:ffmpeg -i %1 "M:\$name.mp4"

When download of any .avi file completes, this command will start ffmpeg with input of the full path to the .avi file to be converted as expanded from %1 i.e. E:\tixati\incoming\movie101.avi
The .mp4 file output by ffmpeg will be saved on drive M:\ with the original filename (movie101), expanded from the $name and adding to it the .mp4 extension, as M:\movie101.mp4




This web site is powered by
Super Simple Server