Accelerated batch mode

If you execute many SCMD commands in a batch file one after the other, you can accelerate the execution of the batch file by starting the SCMD program in batch mode.

Starting the batch mode

The call starts an instance of the program in the background. All subsequent SCMD calls are then passed to this instance and processed by it. Initializations such as the connection to the database then only need to be run once, and execution is faster.

To close the background instance, exit the batch mode.

Terminating the batch mode

Example

scmd -startbatch
scmd -u Username -p Password -d Domain -sendmsg -msg Text1 -to OU1 -once -at 12.12.2019 12:34
scmd -u Username -p Password -d Domain -sendmsg -msg Text2 -to OU2 -once -at 13.12.2019 12:34
scmd -u Username -p Password -d Domain -sendmsg -msg Text3 -to OU3 -once -at 14.12.2019 12:34
scmd -stopbatch

The logon data must remain the same in all calls, otherwise the command is not executed.

Parallel execution of multiple batch files is not possible.