---
title: "Batch File"
description: "Invantive Data Hub is typically started from a batch file."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-data-hub/batch-file
original: https://documentation.invantive.eu/en/docs/invantive-data-hub/batch-file
updated: 2026-10-08T00:00:00Z
license: https://documentation.invantive.eu/en/
---

Invantive Data Hub is typically started from a batch file. Such a batch file can be written by hand, as in [[Sample Batch File]], but Invantive Query Tool creates one from a few choices as follows:
- Start [[Invantive Query Tool]].
- Log on to the database on which the script should run:
![The log-on window of Invantive Query Tool with a database selected, a user name and the "Log in" button.](/img/a368c302388bca4310d57f4368cbb78fc488a614cec8b95d2bbd8b7b6d2b0fae/567x382.png)
- Open the script. A script which has not been saved yet is offered for saving first, since the batch file runs a file.
- On the "General" tab, click "Create Data Hub Batch Script" in the "Tools" group:
![The "Tools" group of the "General" ribbon tab of Invantive Query Tool, with the button "Create Data Hub Batch Script".](/img/9ce8dc13d6d5c91e6aec5ef86932cf48d32085bfda8c1b4ae426e10d222b92b8/300x108.png)
- Fill out the form and choose the output format: "Windows Batch File" for a `.bat` file, or "KSH" for a KornShell script:
![The "Configure batch script" form of Invantive Query Tool with SQL file, log file, database and executable.](/img/cffbe0ee9dcf498eef694302919e1246b40e3a3d3835d422b6e1c2f6f40e3eea/935x434.png)
- Click "Save".
- Choose where to save the file. The proposed name is the name of the SQL file with the extension `.bat` or `.ksh`.
- A message confirms that the file was created and names the file.

The user name is passed to Invantive Data Hub when it is filled in. The password is only written to the file when "Encrypt password with device key" is checked. The encrypted password only works on the device on which the file was created.

The button is available from release 28.0.

## Release Notes

- [Invantive Data Hub](/en/release-notes/products/invantive-data-hub)
  - [26.0 to 27.0](/en/release-notes/products/invantive-data-hub?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-data-hub?step=25.0-to-26.0)

