Previous Topic: createdpmdefaultgroup Command--Create or Update ServiceNext Topic: dpmrpt schedulereport Command--Schedule a Report


dpmcmd run Command--Run Scripts

dpmcmd run is the command-line interface command for running scripts.

This command has the following format:

dpmcmd run -cmdline commandline [-pre] [-post][-locale iso639value]
-cmdline commandline

Defines the shell command or path where the script file that you want to run is located.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Run a Script and Create Events

This example runs the script named MyScript and creates an event before and after the script is run.

dpmcmd run -cmdline C:\scripts\MyScript.bat -pre -post