# Batch

### ![](https://2873353689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfK1YJaTCqOiS0L22wVKG%2Fuploads%2Fgit-blob-b1ff09efdc12bf5f66706c589ab22a99da1cb7dd%2FIcon_TOB_program.gif?alt=media)

### Abstract

Plug-in to run batch file scripts within OMrun. Based on a batch script (.bat) executed with parameters defined within OMrun.

There are two different batch plug-ins implemented in OMrun:

* **Batch**\
  This plug-in does transfer every parameter (1-4) terminated by double quotes to the batch script.
* **Batch Native**\
  This plug-in does transfer the parameters exactly as they are listed (Native) to the batch script.

***

### Input

Execution parameters to invoke a conversion:

**Field `Application`** (Input directory and batch script name (.bat) as a hard coded value or as a variable from the local / global environment definition)

* Description: Customized batch jobs able to work with input parameters from OMrun.
* Syntax: <\*.bat>
* Example: C:/Temp/WaitBatch.bat
* Possible values:
  * \<variable name> (from environment)
  * \<hardcoded path / file name>\\

**Field `@param1` - `@param4`** (parameters)

* Description: Any type of parameter depending on the expected input value for the batch script.
* Syntax: \<param1>.\<param2>,\<param3>.\<param4>
* Examples
  * **Batch**: "Path" "First Name" Second Name" "Address" \[4 parameters]
  * **Batch Native**: Path First Name Second Name Address \[6 parameters]

***

### Output

The output depends on the functionality of the batch job.
