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

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.
1
HyperDbg> .script c:\HyperDbg Batch Files\ApiHook.ds
Copied!

IOCTL

None

Remarks

  1. 1.
    Each line of your file should contain only and only one command.
In HyperDbg's batch scripts '#' is used as the comment character. However, in the script engine, it uses a C-like commenting style.

Requirements

None
None