Previous Topic: verboseNext Topic: Ignoring Errors During Batch Processing


batch

Valid on Windows and UNIX

In batch mode, a batch file is referenced and its contents are extracted and executed. Batch files can consist of one or a series of commands.

When creating a file for batch execution, the sd_sscmd command is not listed before each command statement contained in the file. The sd_sscmd command is issued only at the onset of command execution, after which the batch file is called.

Each line in the file containing the command statements must not exceed 1023 characters.

The batch command may be used recursively. For example, in the file used as the argument for batch, you may write batch and refer to another batch file.

This command has the following format:

sd_sscmd batch {path = path [logfile=logfile]}

To enable batch mode, enter the sd_sscmd command followed by the keyword batch and the name of the file that contains the command statement or statements that you wish to execute.  For example, from a Windows server you might enter:

sd_sscmd batch path =D:\test\regswpr.txt logfile=D:\logs\log21.txt

Regswpr.txt contains a command statement to register software

#This batch file registers one software 
aregsw path=D:\test2 reginfo=D:\test2\reginfo logfile=D:\logs\log11.txt

All characters following the # on a line are considered part of the comment.