SYS (command)
{{Short description|Computing command}}
{{Infobox software
| name = sys
| logo =
| screenshot =
| screenshot size =
| caption =
| author = Tim Paterson
| developer = Seattle Computer Products, Microsoft, Digital Research, IBM, Toshiba
| released = {{Start date and age|1980}}
| latest release version =
| latest release date =
| programming language = MS-DOS: x86 assembly language
| operating system = 86-DOS, MS-DOS, PC DOS, FlexOS, 4690 OS, PTS-DOS, SISNE plus, Windows, DR-DOS
| genre = Command
| license = MS-DOS: MIT
| website =
}}
In computing, sys
is a command used in many operating system command-line shells and also in Microsoft BASIC.
DOS, Windows, etc.
File:IBM PC DOS 1.0 screenshot.png 1.0.]]
SYS is an external command of Seattle Computer Products 86-DOS,{{cite book |title=86-DOS - Disk Operating System for the 8086 - User's Manual |edition=Preliminary |version=Version 0.3 |date=1980 |publisher=Seattle Computer Products, Inc. |location=Seattle, Washington, USA |url=http://www.patersontech.com/Dos/docs/86_Dos_usr_03.pdf |access-date=2019-07-14 |url-status=dead |archive-url=https://web.archive.org/web/20190714004434/http://www.patersontech.com/dos/docs/86_Dos_usr_03.pdf |archive-date=2019-07-14}} (59 pages) Microsoft MS-DOS, IBM PC DOS, Digital Research FlexOS,{{Cite web | url=http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf | title=FlexOS User's Guide | archive-url=https://web.archive.org/web/20190925131719/http://bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf | archive-date=2019-09-25 }} IBM/Toshiba 4690 OS,https://archive.org/details/4690OSV6r2UsersGuide/page/n169 {{Dead link|date=February 2022}} PTS-DOS,
{{cite web |title=PTS-DOS 2000 Pro User Manual |publisher=Paragon Technology GmbH |location=Buggingen, Germany |date=1999 |url=http://download.paragon-software.com/doc/manual_dos_eng.pdf |access-date=2018-05-12 |url-status=live |archive-url=https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf |archive-date=2018-05-12}} Itautec/Scopus Tecnologia SISNE plus,[https://datassette.org/manuais/ibm-pc/sisne-plus-referencia-sumaria SISNE plus - Referência Sumária | Datassette] and Microsoft Windows 9x operating systems. It is used to make an already formatted medium bootable. It will install a boot sector capable of booting the operating system into the first logical sector of the volume. Further, it will copy the principal DOS system files, that is, the DOS-BIOS (IO.SYS or IBMBIO.COM) and the DOS kernel (MSDOS.SYS or IBMDOS.COM) into the root directory of the target. Due to restrictions in the implementation of the boot loaders in the boot sector and DOS' IO system, these two files must reside in the first two directory entries and be stored at the beginning of the data area under MS-DOS and PC DOS. Depending on version, the whole files or only a varying number of sectors of the DOS-BIOS (down to only three sectors in modern issues of DOS) will have to be stored in one consecutive part. SYS will try to physically rearrange other files on the medium in order to make room for these files in their required locations. This is why SYS needs to bypass the filesystem driver in the running operating system. Other DOS derivatives such as DR-DOS do not have any such restrictions imposed by the design of the boot loaders, therefore under these systems, SYS will install a DR-DOS boot sector, which is capable of mounting the filesystem, and can then simply copy the two system files into the root directory of the target.
SYS will also copy the command line shell (COMMAND.COM) into the root directory.{{Cite web|url=https://www.computerhope.com/syshlp.htm|title=Sys Command|website=www.computerhope.com}} The command can be applied to hard drives and floppy disks to repair or create a boot sector.
Although an article on Microsoft's website says the SYS
command was introduced in MS-DOS version 2.0,[http://support.microsoft.com/?scid=kb%3Ben-us%3B66530&x=11&y=10 SYS.COM Requirements in MS-DOS versions 2.0-6.0] this is incorrect. SYS actually existed in 86-DOS 0.3 already. According to The MS-DOS Encyclopedia, the command was licensed to IBM as part of the first version of MS-DOS, and as such it was part of MS-DOS/PC DOS from the very beginning (IBM PC DOS 1.0 and MS-DOS 1.25).
DR DOS 6.0 includes an implementation of the {{code|SYS}} command.[https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf DR DOS 6.0 User Guide Optimisation and Configuration Tips]
=Syntax=
The command syntax is:
SYS [drive1:][path] drive2:
Arguments:
[drive1:][path]
– The location of the system filesdrive2:
– The drive to which the files will be copied
=Example=
C:\>sys a:
Microsoft BASIC
SYS is also a command in Microsoft BASIC used to execute a machine language program in memory. The command took the form SYS n
where n is a memory location where the executable code starts. Home computer platforms typically publicised dozens of entry points to built-in routines (such as Commodore's KERNAL{{Cite web|url=https://www.c64-wiki.com/wiki/SYS|title=SYS - C64-Wiki|website=www.c64-wiki.com}}) that were used by programmers and users to access functionality not easily accessible through BASIC.
See also
References
{{Reflist|refs=
|contributor-first35=Charles |contributor-last35=Mergentime |contributor-first36=Randy |contributor-last36=Nevin |contributor-first37=Dan |contributor-last37=Newell |contributor-first38=Tani |contributor-last38=Newell |contributor-first39=David |contributor-last39=Norris |contributor-first40=Mike |contributor-last40=O'Leary |contributor-first41=Bob |contributor-last41=O'Rear |contributor-link41=Bob O'Rear |contributor-first42=Mike |contributor-last42=Olsson |contributor-first43=Larry |contributor-last43=Osterman |contributor-first44=Ridge |contributor-last44=Ostling |contributor-first45=Sunil |contributor-last45=Pai |contributor-first46=Tim |contributor-last46=Paterson |contributor-link46=Tim Paterson |contributor-first47=Gary |contributor-last47=Perez |contributor-first48=Chris |contributor-last48=Peters |contributor-first49=Charles |contributor-last49=Petzold |contributor-link49=Charles Petzold |contributor-first50=John |contributor-last50=Pollock |contributor-first51=Aaron |contributor-last51=Reynolds |contributor-link51=Aaron R. Reynolds |contributor-first52=Darryl |contributor-last52=Rubin |contributor-first53=Ralph |contributor-last53=Ryan
|contributor-first54=Karl |contributor-last54=Schulmeisters |contributor-first55=Rajen |contributor-last55=Shah |contributor-first56=Barry |contributor-last56=Shaw |contributor-first57=Anthony |contributor-last57=Short |contributor-first58=Ben |contributor-last58=Slivka |contributor-first59=Jon |contributor-last59=Smirl |contributor-first60=Betty |contributor-last60=Stillmaker |contributor-first61=John |contributor-last61=Stoddard |contributor-first62=Dennis |contributor-last62=Tillman |contributor-first63=Greg |contributor-last63=Whitten |contributor-first64=Natalie |contributor-last64=Yount |contributor-first65=Steve |contributor-last65=Zeck |date=1988 |edition=Completely reworked |publisher=Microsoft Press |location=Redmond, Washington, USA |isbn=1-55615-049-0 |lccn=87-21452 |oclc=16581341 |page=940}} (xix+1570 pages; 26 cm) (NB. This edition was published in 1988 after extensive rework of the withdrawn 1986 first edition by a different team of authors. [https://www.pcjs.org/pubs/pc/reference/microsoft/mspl13/msdos/encyclopedia/])
}}
Further reading
- {{Cite book|author-last=Wolverton|author-first=Van|title=MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition|url=https://archive.org/details/msdos00wolv|url-access=registration|date=1990|publisher=Microsoft Press|isbn=978-1556152894}}
- {{Cite book|first=Peter|last=Dyson|year=1995|title=Mastering OS/2 Warp|publisher=Sybex|isbn=978-0782116632}}
- {{Cite book|author1=Tim O'Reilly|author2=Troy Mott|author3=Walter Glenn|year=1999|title=Windows 98 in a Nutshell: A Desktop Quick Reference|publisher=O'Reilly|isbn=978-1565924864|url-access=registration|url=https://archive.org/details/windows98innutsh00orei}}
External links
{{Wikibooks|Guide to Windows Commands}}
- [https://www.computerhope.com/syshlp.htm MS-DOS and Windows command line sys command]
- [https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/SYS.ASM Open source SYS implementation that comes with MS-DOS v2.0]
{{Windows commands}}
Category:External DOS commands
Category:Microcomputer software