# Batch

### ![](/files/ZmGkX6hu7XyzkY2aPSnI)

### 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dbi-services.gitbook.io/omrun-help/element-details/test-program-object/batch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
