Subversion Repositories SvarDOS

Rev

Rev 1069 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1069 Rev 1097
1
 
1
 
2
 
2
 
3
                               === SVARCOM ===
3
                               === SVARCOM ===
4
 
4
 
5
 
5
 
6
SvarCOM is the SvarDOS command line interpreter, known usually under the name
6
SvarCOM is the SvarDOS command line interpreter, known usually under the name
7
"COMMAND.COM". It is designed and maintained by Mateusz Viste, and distributed
7
"COMMAND.COM". It is designed and maintained by Mateusz Viste, and distributed
8
under the terms of the MIT license.
8
under the terms of the MIT license.
9
 
9
 
10
SvarCOM is minimalist and I'd like to keep it that way. It aims to be
10
SvarCOM is minimalist and I'd like to keep it that way. It aims to be
11
functionaly equivalent to COMMAND.COM from MS-DOS 5.x/6.x. No LFN support.
11
functionaly equivalent to COMMAND.COM from MS-DOS 5.x/6.x. No LFN support.
12
 
12
 
13
SvarCOM's resident footprint is under 2 KiB.
13
SvarCOM's resident footprint is under 2 KiB.
14
 
14
 
15
Translation strings are stored in the file SVARCOM.LNG, which should be
15
Translation strings are stored in the file SVARCOM.LNG, which should be
16
placed in a directory pointed at by %NLSPATH% for SvarCOM to be able to output
16
placed in a directory pointed at by %NLSPATH% for SvarCOM to be able to output
17
messages in non-english languages. SvarCOM's language is controlled by the
17
messages in non-english languages. SvarCOM's language is controlled by the
18
%LANG% environment variable.
18
%LANG% environment variable.
19
 
19
 
20
Latest version available here: http://svardos.org/svarcom
20
Latest version available here: http://svardos.org/svarcom
21
 
21
 
22
 
22
 
23
=== INTERNAL COMMANDS ========================================================
23
=== INTERNAL COMMANDS ========================================================
24
 
24
 
25
SvarCOM implements the following internal commands. For help on each command,
25
SvarCOM implements the following internal commands. For help on each command,
26
run it with a "/?" argument.
26
run it with a "/?" argument.
27
 
27
 
28
BREAK       - sets or clears extended CTRL+C checking
28
BREAK       - sets or clears extended CTRL+C checking
29
CALL        - calls a batch file from within another batch file
29
CALL        - calls a batch file from within another batch file
30
CD/CHDIR    - displays the name of or changes the current directory
30
CD/CHDIR    - displays the name of or changes the current directory
31
CHCP        - displays or sets the active code page number
31
CHCP        - displays or sets the active code page number
32
CLS         - clears the screen
32
CLS         - clears the screen
33
COPY        - copies one or more files to another location
33
COPY        - copies one or more files to another location
34
DATE        - displays or sets the system date
34
DATE        - displays or sets the system date
35
DEL/ERASE   - deletes one or more files
35
DEL/ERASE   - deletes one or more files
36
DIR         - displays a list of files and subdirectories in a directory
36
DIR         - displays a list of files and subdirectories in a directory
37
ECHO        - displays messages, or turns command-echoing on or off
37
ECHO        - displays messages, or turns command-echoing on or off
38
EXIT        - quits the command.com program (command interpreter)
38
EXIT        - quits the command.com program (command interpreter)
39
FOR         - runs a specified command for each file in a set of files
39
FOR         - runs a specified command for each element in a list
40
GOTO        - directs batch processing to a labelled line in the batch program
40
GOTO        - directs batch processing to a labelled line in the batch program
41
IF          - performs conditional processing in batch programs
41
IF          - performs conditional processing in batch programs
42
LN          - adds, deletes and displays global executable links
42
LN          - adds, deletes and displays global executable links
43
MD/MKDIR    - creates a directory
43
MD/MKDIR    - creates a directory
44
PATH        - displays or sets a search path for executable files
44
PATH        - displays or sets a search path for executable files
45
PAUSE       - suspends processing of a batch program
45
PAUSE       - suspends processing of a batch program
46
PROMPT      - changes the DOS command prompt
46
PROMPT      - changes the DOS command prompt
47
RD/RMDIR    - removes (deletes) a directory
47
RD/RMDIR    - removes (deletes) a directory
48
REM         - records comments (remarks) in a batch file or CONFIG.SYS
48
REM         - records comments (remarks) in a batch file
49
REN/RENAME  - renames a file, a set of files or a directory
49
REN/RENAME  - renames one or more files or directories
50
SET         - displays, sets or removes DOS environment variables
50
SET         - displays, sets or removes DOS environment variables
51
SHIFT       - changes the position of arguments in a batch file
51
SHIFT       - changes the position of arguments in a batch file
52
TIME        - displays or sets the system time
52
TIME        - displays or sets the system time
53
TRUENAME    - returns a fully qualified path or filename
53
TRUENAME    - returns a fully qualified path or filename
54
TYPE        - displays the contents of a text file
54
TYPE        - displays the contents of a text file
55
VER         - displays the DOS version
55
VER         - displays the DOS kernel and SvarCOM shell versions
56
VERIFY      - tells DOS whether to verify that files are written correctly
56
VERIFY      - tells DOS whether to verify that files are written correctly
57
VOL         - displays the disk volume label and serial number
57
VOL         - displays the disk volume label and serial number
58
 
58
 
59
 
59
 
60
=== INSTALLATION =============================================================
60
=== INSTALLATION =============================================================
61
 
61
 
62
Installing SvarCOM requires to either copy it to the root of your boot drive
62
Installing SvarCOM requires to either copy it to the root of your boot drive
63
replacing your current COMMAND.COM, or adding a SHELL directive to your
63
replacing your current COMMAND.COM, or adding a SHELL directive to your
64
CONFIG.SYS file to instruct DOS that it should load SvarCOM as its shell, eg.:
64
CONFIG.SYS file to instruct DOS that it should load SvarCOM as its shell, eg.:
65
 
65
 
66
  SHELL=C:\SVARCOM\COMMAND.COM /P
66
  SHELL=C:\SVARCOM\COMMAND.COM /P
67
 
67
 
68
Some DOSes support a SHELLHIGH directive that loads the shell in high memory.
68
Some DOSes support a SHELLHIGH directive that loads the shell in high memory.
69
It is pointless to use it to load SvarCOM. SvarCOM will load its resident part
69
It is pointless to use it to load SvarCOM. SvarCOM will load its resident part
70
as high as possible on its own, enforcing this through SHELLHIGH could even
70
as high as possible on its own, enforcing this through SHELLHIGH could even
71
be harmful since SvarCOM wouldn't be able to relocate to the highest address
71
be harmful since SvarCOM wouldn't be able to relocate to the highest address
72
as it would be allocated by SHELLHIGH already.
72
as it would be allocated by SHELLHIGH already.
73
 
73
 
74
SvarCOM supports multiple languages. To enable SvarCOM using them it is
74
SvarCOM supports multiple languages. To enable SvarCOM using them it is
75
necessary to define an NLSPATH environment variable that would point to a
75
necessary to define an NLSPATH environment variable that would point to a
76
directory and copy the SVARCOM.LNG file there. Once done, SvarCOM will try
76
directory and copy the SVARCOM.LNG file there. Once done, SvarCOM will try
77
loading whatever language is being set up in the LANG environment variable.
77
loading whatever language is being set up in the LANG environment variable.
78
 
78
 
79
 
79
 
80
=== LICENSE ==================================================================
80
=== LICENSE ==================================================================
81
 
81
 
82
SvarCOM is published under the terms of the MIT license.
82
SvarCOM is published under the terms of the MIT license.
83
 
83
 
84
Copyright (C) 2021-2022 Mateusz Viste
84
Copyright (C) 2021-2022 Mateusz Viste
85
 
85
 
86
Permission is hereby granted, free of charge, to any person obtaining a copy
86
Permission is hereby granted, free of charge, to any person obtaining a copy
87
of this software and associated documentation files (the "Software"), to deal
87
of this software and associated documentation files (the "Software"), to deal
88
in the Software without restriction, including without limitation the rights
88
in the Software without restriction, including without limitation the rights
89
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
89
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
90
copies of the Software, and to permit persons to whom the Software is
90
copies of the Software, and to permit persons to whom the Software is
91
furnished to do so, subject to the following conditions:
91
furnished to do so, subject to the following conditions:
92
 
92
 
93
The above copyright notice and this permission notice shall be included in all
93
The above copyright notice and this permission notice shall be included in all
94
copies or substantial portions of the Software.
94
copies or substantial portions of the Software.
95
 
95
 
96
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
96
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
97
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
97
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
98
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
99
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
99
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
100
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
100
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
101
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
102
SOFTWARE.
102
SOFTWARE.
103
 
103
 
104
 
104
 
105
====================================================================== EOF ===
105
====================================================================== EOF ===
106
 
106