> For the complete documentation index, see [llms.txt](https://docs.hyperdbg.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperdbg.org/commands/meta-commands/.script.md).

# .script (run batch script commands)

Description of the '.script' command in HyperDbg.

### Command

> .script

### Syntax

> .script \[FilePath (string)] \[Args (string)]

### Description

Runs a batch file of HyperDbg commands (each command in one line). For more information, please take a look at [Debugger Script](https://docs.hyperdbg.org/commands/scripting-language/hyperdbg-scripts).

### Parameters

**\[FilePath (string)]**

The file path of commands.

**\[Args (string)]**

Arguments to the script.

### Examples

The following command runs a batch file located at `c:\HyperDbg Batch Files\ApiHook.ds`.

```
HyperDbg> .script "c:\HyperDbg Batch Files\ApiHook.ds"
```

### IOCTL

None

### Remarks

1. Each line of your file should contain only and only one command.

{% hint style="success" %}
In HyperDbg, both batch scripts and the script engine use a C-like [commenting style](https://docs.hyperdbg.org/commands/scripting-language/assumptions-and-evaluations#comments).
{% endhint %}

### Requirements

None

### Related

None
