Home > Commands N-Z > Commands S

SYS


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Creates a startup disk by copying hidden operating system files (IO.SYS and MSDOS.SYS), the operating system command interpreter (COMMAND.COM), and the part of the operating system that provides access to compressed drives (DRVSPACE.BIN) to the disk. (SYS copies DRVSPACE.BIN only if the DRVSPACE.BIN file exists in the root directory of the source drive or directory.)

IO.SYS, MSDOS.SYS and DRVSPACE.BIN are hidden files and do not typically appear when you type the DIR command. To see these files, type:

    DIR /A

Syntax

SYS [drive1:][path] drive2:


Parameters
drive1: (v4.0 Win95 WinME)
path (v6.2 Win95)
Specifies the location of the system files. If you do not specify a path, the operating system searches the root directory on the current drive for the system files.
drive2: (v1.0 Win95)
Specifies the drive to which you want to copy the system files. These files can be copied only to a root directory, not to a subdirectory.

Switches

none.


Related

For information about copying files, see the COPY and XCOPY commands.


Notes
How the SYS command copies files

The SYS command copies the files in the order: IO.SYS, MSDOS.SYS, COMMAND.COM and DRVSPACE.BIN.


No requirement for contiguous files

The operating system no longer requires the two system files to be contiguous. This means that when you want to copy a new version of the operating system to a disk containing system files for v3.30 or earlier, you need not reformat the disk.


Using the SYS command on compressed drives

The SYS command does not work on compressed drives. If drive C is compressed and you need to make your hard disk bootable, use the SYS command on drive C's host drive. (If you are using DriveSpace, to find out which is drive C's host drive, type DRVSPACE /INFO C: at the command prompt.)


Using the SYS command on assigned drives and network drives

The SYS command does not work on drives that have been redirected by using the ASSIGN, JOIN, or SUBST command. SYS also does not work on network drives or drives redirected using INTERLNK.


Examples

To copy the operating system files and command interpreter from the disk in the current drive to a disk in drive A, type:

    SYS A:

To copy the operating system files and command interpreter from a disk in drive B to a disk in drive A, type:

    SYS B: A:

Errorlevels

none.


Availability
External
DOS
v1.0 v1.05 v1.1 v1.11 v1.24 v1.25 v1.85 v2.0 v2.01 v2.05 v2.10 v2.11 v2.11R v2.12 v2.2 v2.25 v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
Win95 Win98 WinME
Windows NT
none

Last Updated: 2003/07/28
Direct corrections or suggestions to: Rick Lively