Subversion Repositories SvarDOS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1814 mateusz.vi 1
Hi Newbies! Congratulations!
2
 
3
You made the first important step in understanding SvarDOS. You found
4
the Quick instruction manual for SvarDOS!
5
Many of the reported commands also work in Windows and - with
6
restrictions - in Linux and Mac OS so that this manual also helps you
7
to understand the basics of all these OSes.
8
 
9
CHAPTER ONE:
10
 
11
Let's start:
12
 
13
You are at C:\ and have no idea what to do?
14
Simply enter:
15
  "ver" (help is "ver /h") and SvarDOS shows you the version number of
16
the Kernel and the Shell (command.com).
17
As a next try:
18
  "dir" or "dir /p" or "dir /w" or "dir /?"
19
What happens? This command shows the content of the current "dir"ectory
20
(folder) where you actually are. Depending on which option you have
21
chosen you see it without sort order, page wise, in lines or you see
22
the help to this command which offers much more options. You can do this
23
in each folder where you are. The help should be available via:
24
  "command /?" e.g. "dir /?" or in some cases
25
  "command -h" or
26
  "command --help"
27
for each executable ("*.exe") file so that it is not necessary to open
28
the manual for each command. This was step 01.
29
 
30
As you started in C:\ you should see among others:
31
  "kernel.sys",
32
  "autoexec.bat",
33
  "config.sys" and maybe
34
  "command.com" (SvarDOS command.com is different to FreeDOS!).
35
The kernel is, what it's name says: the kernel. Without it, the
36
OS will not boot. You will hear about "autoexec.bat" and "config.sys"
37
later.
38
  "command.com" is a very important file. Inside it there are a lot of
39
commands that can be executed by simply typing the command's name.
40
As they are inside command.com you will not find external .exe files and
41
it is recommended to know the names of the important ones by heart.
42
As most of these commands also exist in Windows it is not a wasted time
43
to know the most important ones of them.
44
  "dir" with its options is one of them. Other important commands inside
45
command.com are:
46
  "cls", "cd", "copy", "del", "echo", "md", "path", "rd" "ren", "set",
47
  "ver" and much more.
48
It makes really sense to keep at least the mentioned commands in mind as
49
Windows command line (yes, it still exists!) also uses them and Linux
50
also uses commands with other names that do in about the same job.
51
This was step 02.
52
 
53
Now type:
54
  "cls" + ENTER
55
and you will see that it clears the screen.
56
Type:
57
  "md TESTDIR" + ENTER and then
58
  "dir" + ENTER
59
and you will see that a new "dir"ectory (folder) "TESTDIR" has been
60
created. You will see that a directory shows a sharp click
61
  "<TESTDIR>" ("dir") as attachment or the name in square brackets like
62
  "[TESTDIR]" ("dir /w") depending on which option you used.
63
Files show an extension with max 3 characters and - depending on the
64
option you have chosen at "dir" - the size and the creation date of the
65
file. You created your first folder!!!
66
Now type:
67
  "cd TESTDIR" + ENTER
68
and you suddenly are in the folder
69
  "C:\TESTDIR". Typing
70
  "dir" shows you two symbols:
71
  "." and "..".
72
  "." means "current directory" whereas
73
  ".." means "there exist directories closer to C:\". Means: with
74
  "cd FOLDERXX" (FOLDERXX is your foldername) you come into the folder.
75
With:
76
  "cd .." you come back one folder closer to C:\.
77
Within a folder you can create another folder, e.g. "SUBDIR1" by
78
typing:
79
  "md SUBDIR1" when you are inside "C:\TESTDIR". With the
80
  "cd SUBDIR1" you get in, with
81
  "cd .." you get out. If you want to move back to "C:\" directly you
82
can enter:
83
  "cd \" or "cd C:\".
84
This works with all existing directories and you can crossjump to
85
other folders (e.g.: cd C:\SVARDOS\DOC").
86
You see that it is simple to move through the hard disk with a few
87
commands! This was step 03.
88
 
89
Well, such were the times before graphical user interfaces! But it still
90
works on modern systems, maybe the commands change a little.
91
OK, now we have created a folder:
92
  "TESTDIR" and a subfolder:
93
  "SUBDIR1"
94
inside. Nobody wants to give folders such a name. After one week nobody
95
remembers what it was good for. Please keep in mind that SvarDOS like
96
all other DOSes only supports 8.3 which means that the maximum length
97
is 8 characters for the file name and 3 characters for ending, e.g.
98
  "filename.txt". The ending says something what the file is good for.
99
File and folder names are unique in a directory. But you can use the same
100
filename with another ending, e.g.:
101
  "filename.doc" in the same folder. They can also be used in another
102
folder.
103
Folders must not be longer than 8 characters. As the folder names are
104
nonsense we want to delete the EMPTY folders again. Very simple: You go
105
to the subfolder that is most far away from:
106
  "C:\" in this case:
107
  "C:\TESTDIR\SUBDIR1", check if it is empty, (Which command? - correct:
108
  "dir", more later), go back to:
109
  "C:\TESTDIR" (Which command? - correct: "cd ..") and then
110
  "rd SUBDIR1". Check if "TESTDIR" is empty and then go back to:
111
  "C:\" and enter:
112
  "rd TESTDIR". Your test directories have gone to NIRVANA!
113
In case that there were files inside one of the folders you have to
114
delete or move them first. Depending on if you want to delete ALL files
115
(dangerous!) or only a special file you can enter:
116
  "del *.*" (*.* = wildcard = ALL!) or:
117
  "del filename.ext".
118
You can also use:
119
  "*.txt" for ALL text files or "blah*.*"
120
for all files starting with "blah". For deleting directories you have
121
to move out of the EMPTY folder first, otherwise you would cut the tree
122
you are sitting on. So "del" is used for deleting one or more files and
123
"rd" for removing EMPTY directories.
124
This was step 04.
125
 
126
You want to keep the folders "TESTDIR" and "SUBDIR1" because important
127
files are inside but don't like the folder name? No problem, rename the
128
folders so that you can keep them in mind.
129
As you have deleted these folders at the end of step 04, you can now
130
check if you kept in mind how you created them. Eeehhmmm? You got it?
131
If yes, goto:
132
  "C:\" (Which command? - correct: cd \ or cd C:\) and enter:
133
  "ren TESTDIR URGENT" then go to "C:\URGENT" (I am sure you now know
134
the command) and enter:
135
  "ren SUBDIR1 CONTRACT". Now you should have the folders
136
  "C:\URGENT\CONTRACT" instead of "C:\TESTDIR\SUBDIR".
137
Let's create a file now. You can use the external SvarDOS command:
138
  "sved" or another editor to do so.
139
SVED works very simple but a little different than modern editors
140
like e.g. Windows Notepad. Simply type: "sved", the UI opens, type the
141
"ESC" button - and you get a choice "Open file", "Save", "Save as..."
142
Close file", "Change EOL" (=end of line in DOS or Linux style) and "Quit".
143
You can also run "sved", type a text and save via "ESC".
144
Even for a Newbie it should simple to understand. But this can be done by
145
everyone. Are we everyone? NO! We test "ECHO"! What will it do? I am sure
146
you already heard what happens if you enter:
147
  "echo Hello World!" If not, check. Simply type it.
148
Now we do not send the result to the monitor but into a file.
149
  "echo Hello World! > C:\URGENT\CONTRACT\world.txt".
150
You can put a second sentence inside by typing:
151
  "echo I am fine! How are you? >> C:\URGENT\CONTRACT\world.txt."
152
  ">>" adds the text in a new line.
153
You created your first simple text file, guess, where you can find it?
154
And how to open it with the "sved" command? Of course, very simple. In
155
Windows you can open it by searching the file in a folder and double-
156
clicking on the filename. The corresponding program opens automatically.
157
In SvarDOS you do nothing else, but vice-versa:
158
  "sved C:\URGENT\CONTRACT\world.txt"
159
Means: You say: use program "sved" and open the file "world.txt" in this
160
or that folder.
161
If this should not work, type:
162
  "C:\SVARDOS\sved C:\URGENT\CONTRACT\world.txt"
163
This was step 05.
164
 
165
With the command:
166
  "copy" you can do exactly what the name says. Basic rule:
167
You copy a file from source to target, remember where world.txt is now.
168
  "copy C:\URGENT\CONTRACT\world.txt C:\URGENT" and you have the document
169
twice. Instead of "world.txt" you can also use wildcards, e.g.:
170
  "*.txt" or "world*.*" or "*.*".
171
Instead of copying you can move files from one position to another one
172
with the EXTERNAL (not in command.com) command:
173
  "move". Also, basic rule:
174
Move the file from source to target, e.g.:
175
  "move C:\URGENT\CONTRACT\world.txt C:\URGENT\test2.txt
176
 
177
Fantastic! Do you want to know more about this great OS?
178
Then do not miss the second chapter of Newbie! Take a short break now!
179
This was step 06.
180
 
181
 
182
CHAPTER TWO:
183
 
184
You survived chapter one of the Newbies help? And you are still
185
interested in SvarDOS? Great!
186
 
187
Maybe you tried to execute some commands in Newbie01 and they did not
188
work? There appeared a message: command or filename not found? You are
189
too stupid why this happened? What did you make wrong? Nothing! Every-
190
thing is correct!
191
The reason why this happens is very simple: Without certain commands
192
that will follow later, SvarDOS can only execute commands that are in
193
your current folder. For example, sved is at:
194
  "C:\SVARDOS\" whereas you are at "C:\". SvarDOS looks at "C:\" and
195
does not find "sved.com". So it simply says: I do not know this command,
196
I have no idea where to find it.
197
To fix this and a lot of other things SvarDOS uses two files that
198
are at "C:\". They are named:
199
  "config.sys" and "autoexec.bat".
200
The files are written in standard text format so that it is very simple
201
to modify them to your needs by using the (guess which command?):
202
  "sved" command, e.g.:
203
  "sved C:\config.sys" or sved "C:\autoexec.bat"
204
"config.sys" is the first file and loaded by the kernel.
205
By using it you can simply load drivers that are needed to enhance the
206
abilities of SvarDOS. For example you can install "himemx" and "emm386"
207
(not in SvarDOS!) which allow to use more than 640 KiB RAM, load the
208
basic CD-ROM driver, modify screen size (restricted), country settings,
209
create a menu where you can choose if you want to start with these or
210
those drivers depending on your current needs. One important thing you
211
should do in config.sys is to load "command.com" and its ENVIRONMENT
212
to be permanent which has a lot of benefits. But that's going to far
213
here.
214
This was step 07, one of the most important.
215
 
216
When "config.sys" is loaded the next important file, "command.com" will
217
be loaded (depending on the settings you made in config.sys, e.g.:
218
  "SHELL=C:\command.com /E:512 /P=C:\autoexec.bat".
219
You can use others shells instead of command.com, but this one is
220
delivered with SvarCOM.
221
  "/P" says which autoexec.bat SvarDOS should use to start. With
222
  "/E" you can define the size of the ENVIRONMENT which is very
223
helpful as already mentioned on the top of this text.
224
 
225
  "autoexec.bat" is a so called batch file. It is read and interpreted
226
line by line. So you can tell SvarDOS that it should change the country
227
settings and codepages, load a keyboard driver, a mouse driver, the
228
second part of the CD-ROM driver or start a special program / game /
229
whatever automatically.
230
With the command:
231
  "set" that is built in command.com you can create variables that fill
232
up the mentioned ENVIRONMENT, for example with:
233
  "set TEMP=C:\TEMP" (folder for temporary files)
234
  "set DOSDIR=C:\SVARDOS" (%DOSDIR% now means: C:\SVARDOS)
235
  "set NLSPATH =C:\%DOSDIR%\NLS" (uses "DOSDIR" -> C:\SVARDOS\NLS)
236
  "set TZ=UTC" (for timezone settings) or
237
  "set LANG=DE" (for language settings) or
238
  "set OS_VERSION=1.3" and so on.
239
To load them automatically, you can write the commands above into
240
autoexec.bat.
241
SvarDOS writes these settings into the ENVIRONMENT as variables and keeps
242
them as long as it is running. You can add other variables later, but
243
please do not use a name that already exists. The command:
244
  "set" without options lists all existing variables,
245
  "set variable=" deletes a variable.
246
Example:
247
  "echo The current version of SvarDOS is: %OS_VERSION%" .
248
shows:
249
  "The current version of SvarDOS is 1.3" ."
250
There are more things that can be used by autoexec.bat, but this leads
251
too far for a basic introduction.
252
But now you know how you can modify your SvarDOS OS to work with it.
253
I hope I was able to help you with this basic information. Of course,
254
I could tell you much more, but this is only a first step into SvarDOS.
255
The last step 08 is done!
256
 
257
Thank you for reading!
258
 
259
Willi Spiegl