Previous: Command-line options used during initialization, Up: Invoking the emulators [Contents][Index]

### 3.2 Autostarting programs from the command-line

It is possible to let the emulator autostart a disk or tape image file, by simply specifying its name as the last argument on the command line, for example

    x64sc lovelygame.d64

will start the C64 emulator, attaching `lovelygame.d64` as a disk image and running the first program on it. You can also specify the name of the program on the fisk image by appending a colon (‘`:`’) the name itself to the argument; for example

    x64sc "lovelygame.d64:run me"

will run the program named `run me` on `lovelygame.d64` instead of the first one.

Using the command-line option `-autostart` is equivalent; so the same result can be obtained with

    x64sc -autostart "lovelygame.d64:run me"

If you specify a raw CBM or P00 file, the emulator will setup the file system based drive emulation so that it is enabled and accesses the directory containing the file first. This is a very convenient way to start multi-file programs stored in file system directories and not requiring “true” drive emulation.

See Using disk and tape images. for more information about images and autostart.