SYS drive: [/N]
Makes drive bootable without reformatting it: SYS copies BASDEV.COM, BASDOS.COM, and COMMAND.COM from the root directory of the system drive (the drive that COMMAND.COM was loaded from) to the root directory of drive (replacing any copies already there), makes them read-only system files (and BASDEV.COM and BASDOS.COM hidden), and gives drive’s boot sector the system drive’s boot code, keeping drive’s disk parameters.
Since the boot code follows the system files’ cluster chains, they don’t have to be the first files on the drive, or contiguous, so SYS works on any FAT volume with room for them (including one formatted by another DOS).
/N makes drive boot without displaying its boot message (Diskette loading..., or Hard disk loading... on a hard disk volume, which SYS sets either way) or waiting 2 seconds for a key. It’s the only way to do this, since the message appears before CONFIG.SYS is read. SYS without /N restores the message and the wait, regardless of what the system drive’s boot code does.
The boot code still checks once for a key, so Esc, P, R, or - still work if you press one while the machine is starting up, after its keyboard test. Pressing a key too early, or holding one down from the start, stops the self-test with a 301 keyboard error. For settings that apply to every boot, use CPU= and SWITCHAR= instead.
FORMAT /S also copies the system drive’s boot code, so a disk formatted that way boots the same way as the system drive.
System transferred, if SYS succeedsCannot transfer the system to the system driveDrive drive doesn't have a FAT volumeDrive drive doesn't have BASIC-DOS version boot code, for the system drive, if its boot code isn’t the running version of BASIC-DOSUnable to copy fileWrite protect errorDrive not readyInvalid driveUnable to transfer the system (error n), for any other errorA missing drive, an unknown switch, or any other argument that isn’t a single drive is a usage error.
Source: SYS.BAS
Copyright (c) 2020-2026 Jeff Parsons Released under MIT License