To use SST on an IBM Personal Computer (or compatible), it helps to know a little about the disk operating system (DOS) used on the IBM PC. The best reference is your DOS manual (supplied with your computer), but we will review a few simple commands here. SST requires version 2.0 or higher of PC-DOS or MS-DOS.
A>
) to avoid confusion with SST commands.
A>dir
To a listing of the files on another drive, type:
A>dir a:
to see, for example, which files are on the A disk. You could, of course, first make A the default drive and then give the previous command, but this is more cumbersome. This example illustrates a general feature of DOS. Unless you specify otherwise, DOS assumes that it will be dealing with the default drive. You can perform most operations without changing the default drive by specifing another drive letter at the appropriate spot.
sst.exe demo.cmd junk
Extensions can be used to remind you what the file contains. SST uses the extension `.cmd' for files of SST commands and the extension `.sav' for SST system files.
oldfile
) to a new file named newfile
,
enter:
A>copy oldfile newfile
The file newfile
will have exactly the same contents as the file
oldfile
. As always, DOS assumes oldfile
is on the default
drive and also places newfile
on the default drive. The syntax of DOS
commands when two filenames are required is usually "from to", i.e. the
first filename is the source (or "from") file and the second is the
destination (or "to") file.
To copy a file from one disk to another, it is only necessary to precede
the filename by a drive designation. If you are copying files between
disks, then the copy can have the same filename as the original. In fact,
if you do not supply a filename for the destination, DOS assumes that you
want to use the same filename as the source. For example, if B is the
default drive, the following command makes a copy of the file oldfile
from the A disk on the B disk with the same name:
B>copy a:oldfile
On the other hand, if oldfile
is on B (the default drive) and you
would like a copy on the A disk, type:
A>copy oldfile a:
(It is not necessary to precede oldfile
with a drive designation
since it is on the default drive.) If there is already a file named
oldfile
on A (the destination drive), it will be overwritten.
To obtain a listing of all the files on the A drive with the extension `.sav', type:
B>dir a:*.cmd
To copy all files from A to B, you could use the command:
C>copy a:*.* b:
SST uses a similar scheme of wild cards to abbreviate variable names.
A>type filename
As always, if the filename is not preceded by a drive specification, DOS assumes the file is on the default drive. To type a file on the A drive, use instead:
B>type a:filename
Not all files in DOS are textfiles. Files with the extension `.exe' or `.com' are executable programs stored in a binary format which cannot be typed.
To create a subdirectory named sst
, type:
C>mkdir sst
The subdirectory sst
now exists. There are two ways to access
files in the subdirectory. First, you can make the subdirectory the
default directory in the same way that you make a disk drive the
default drive. This is done by changing directories:
C>cd sst
You are now located within the sst subdirectory. To obtain a listing of files in the sst subdirectory, give the command:
C>dir
Unless you specify otherwise, DOS assumes that you only want a listing of files in the default subdirectory--which is whatever subdirectory you happen to be located in at the time you issue a command. To return to the main (or root) directory, give the command:
C>cd \
The backslash (`\') is DOS's symbol for the top directory.
The other way to access files in a subdirectory is to provide DOS
with a path telling it how to find the file you are interested in.
If you are in the root directory and you would like to see the contents
of a file in the sst
subdirectory, try:
C>type sst\filename
Thus, it is not necessary to change directories to access a file in another directory.
DOS allows you to create subdirectories in subdirectories so directory structures can become rather complicated. We do not recommend this practice if you are a newcomer to DOS. For the purposes of this manual we will assume that you do not have subdirectories to subdirectories.
Specifying pathnames can become rather tedious and DOS provides a facility for specifying which directories are to be searched for programs with the path command. If you type:
C>path \;\sst
DOS will search the root directory (\
) and the sst subdirectory
(\sst
) when it looks for programs to execute. With the above path
command, it is possible to execute sst, for example, without being located
in the sst subdirectory.
autoexec.bat
on the default drive and, if it finds this file,
it executes the commands
there.