Our automation scripts should update Syncovery profile with ExecuteAfter scripts.
The command line for the scripts includes double-quotes characters like this:
Code: Select all
++script.bat "$LEFT" "$RIGHT" "$LOGFILE"
Code: Select all
[ExecuteAfter]
xaf_test=++script.bat "$LEFT" "$RIGHT" "$LOGFILE"
Code: Select all
Syncovery.exe ADD /Name=test /Left=C:\left /Right=C:\right /L2R /MoveMode=mmMoveNormal /RecycleDel=No /ExecuteAfter="++script.bat ""$LEFT"" ""$RIGHT"" ""$LOGFILE""" /Mask=:+c:\WORK\111\l-r.txt /UseFolderMasks /FolderMasks=?*
Code: Select all
Syncovery.exe CHANGE test /ExecuteAfter="++script.bat ""$LEFT"" ""$RIGHT"" ""$LOGFILE"""
Code: Select all
[ExecuteAfter]
xaf_test=++script.bat $LEFT $RIGHT $LOGFILE
Please advise how should I construct the command line and escape the /ExecuteAfter properly so it saves double-quote characters?
Thank you.
PS: We are using Syncovery 8.69f on 200+ machines.