The command line interface has two modes of operation, interactive and non- interactive. To use the interactive mode, just run the command, to use the non-interactive mode, run the command using command line arguments. -------------------------------------------------------------------------------- Running CLI in non-interactive mode In this mode, CLI single-line commands can be used in scripts. In addition they can be used to easily configure a large number of hosts using standard input: ws_cli.exe < scenario.txt To stop a scenario: ws_cli.exe -r %SCEN% -m stop Stop Scenario, Loop Until Stopped: :_cli cd/d "C:\Program Files\XOsoft\WANSync" ws_cli.exe -I %REPL% | find "%SCEN%" >nul if not errorlevel 1 ( ws_cli.exe -r %SCEN% -m stop 2>&1 >>%XLOG% > nul ping -n 10 127.0.0.1 goto _cli ) goto :EOF -------------------------------------------------------------------------------- ws_cli.exe -h XOsoft WANSync CLI v4.0.61 Usage: -v version information -I [hostname[:port]] - service state info -r <scenario_name> -U [domain\]username:password -R <replica host name> -m <run | stop | sync | events | status | synconly | suspend | resume | dbproc_start | dbproc_stop | propagate_dirs> -T <timeout (sec)> -b <bookmark name> -t <bookmark type> = {regular | backup} Flags (without value): -F File Synchronization -B Block Synchronization -Y Ignore files with the same size and modification time -P Manual database processing -------------------------------------------------------------------------------- ws_cli.exe -r "251to205_realtime" -m run -F -Y --------------------------------------------------------------------------------