Subversion Repositories SvarDOS

Rev

Rev 1815 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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