Custom Action
What are custom actions
Custom actions are actions to be executed before/after synchronization and on error cases. These actions can be run with command line interface. The "custom actions commands" are the general for all "synchronization jobs".

Managing custom actions
If you are using a long file name that contains spaces, use quoted strings to indicate where the file name ends and the arguments begin; otherwise, the file name is ambiguous. The command line may include the following variables: %ps% - profile name; %jn% - job identifier; %js% - job name; %errs% - error description (if any); %wait% - execute the command and wait till it finishes.
Single custom action
If it is necessary to execute only one action you can input the command into "custom actions command line" directly.
Example
In case you want to send e-mail on synchronization error you need download and install a e-mail's client that supports command line from internet, for example "sendmail" and type the following command line in "On error" field: "sendmail -subj:synchronization_error_in_%js% -to:admin@server.com -body:%errs%".
Multiple custom actions
In case you need to execute more than one actions with "command line" you can gather commands into batch file and run it with "customs action command line".
Example
Commands like "ChangeMyPassword.exe", "copy c:\MyFiles\*.* e:\MyFiles" etc. can be saved in a "batch" file:
AfterSync.bat
ChangeMyPassword.exe
copy c:\MyFiles\*.* e:\MyFiles
...
To run these commands just type the following command line in "After synchronization" field: "c:\AfterSync.bat". |