Command

Command


Use this option to execute an external (command line) application.





First example:



In the first example we're going to move the source file to a temp directory if this file exists in the destination directory. We are using the 'Destination File Exists' command option. The 'Application name' is empty. This depends on what you are going to execute. We are using a command line instruction.


Command:                cmd /c move %SFD\%SFN c:\temp


cmd /c                        Carries out the command and then terminates

move                        Moves files and renames files and directories.

%SFD\%SFN                Source (Source file directory + filename)

c:\temp                        Destination


Second example:



In this example we're going to zip the source file using the command line version of 7zip. (7za.exe download at http://www.7-zip.org). We are going to use the 'Before Move/Copy/Delete' command option. The 'Application Name' is empty. This depends on what you are going to execute. We are using a command line application.


Command:        7za.exe a %SFD\Zipped\%SFN.zip %SFD%FN


7za.exe                        7Zip Command line exe file

a                                7Zip archive command

%SFD\Zipped\%SFN.zip                Destination, Zipped filename (Destination directory + filename)

%SFD%SFN                        Source, Unzipped filename (Source directory + filename)


Input files are zipped into the subfolder ‘zipped’. The extention .zip is added to the original filename.



Copyright © 2007-2013, www.limagito.com