2022-07-18 11:58:35 -06:00
|
|
|
script
|
2022-07-20 00:01:25 -06:00
|
|
|
======
|
|
|
|
|
2022-07-22 16:16:57 -06:00
|
|
|
Tags: `tag/system`
|
2022-07-20 00:01:25 -06:00
|
|
|
:dfhack-keybind:`script`
|
2022-07-18 11:58:35 -06:00
|
|
|
|
2022-07-22 11:01:04 -06:00
|
|
|
:index:`Execute a batch file of DFHack commands.
|
|
|
|
<script; Execute a batch file of DFHack commands.>` It reads a text file and
|
2022-07-22 00:21:56 -06:00
|
|
|
runs each line as a DFHack command as if it had been typed in by the user --
|
|
|
|
treating the input like `an init file <init-files>`.
|
2022-07-18 11:58:35 -06:00
|
|
|
|
|
|
|
Some other tools, such as `autobutcher` and `workflow`, export their settings as
|
|
|
|
the commands to create them - which can later be reloaded with ``script``.
|
|
|
|
|
|
|
|
Usage::
|
|
|
|
|
|
|
|
script <filename>
|
|
|
|
|
2022-07-20 00:01:25 -06:00
|
|
|
Examples
|
|
|
|
--------
|
2022-07-18 11:58:35 -06:00
|
|
|
|
|
|
|
- ``script startup.txt``
|
2022-07-18 12:16:05 -06:00
|
|
|
Executes the commands in ``startup.txt``, which exists in your DF game
|
|
|
|
directory.
|