Next: cartconv, Previous: Binary monitor [Contents][Index]

## 14 c1541

VICE is provided with a complete stand-alone disk image maintenance utility, called `c1541`.

The syntax is:

    c1541 [IMAGE1 [IMAGE2]] [COMMAND1 COMMAND2 … COMMANDN]

`IMAGE1` and `IMAGE2` are disk image names that can be attached before `c1541` starts. `c1541` can handle up to two disk images at the same time by using two virtual built-in drives, numbered `8` and `9`; `IMAGE1` (if present) is always attached to drive `8`, while `IMAGE2` is attached to drive `9`.

`COMMAND`s specified on the command-line all begin with the minus sign (`-`); if present, `c1541` executes them in the same order as they are on the command line and returns a zero error code if they were successful. If any of the `COMMAND`s fails, `c1541` stops and returns a nonzero error code.

If no `COMMAND`s are specified at all, `c1541` enters interactive mode, where you can type commands manually. Commands in interactive mode are the same as commands in batch mode, but do not require a leading `-`. As with the monitor, file name completion and command line editing with history are provided via GNU `readline`. Use the command ‘`quit`’ or press `C-d` to exit.