SHORTIES\GEMDOS.DOC ·
DOC ·
2.3 KB ·
1989-03-09 ·
from PCPlus_Issue-34_Jul-1989_FluxEngine-360Kb
GEMDOS.BAT - A user friendly DOS shell for GEM
~~~~~~~~~~
The GEM environment, as in the GEM Desktop Version 2.0 given with the
AMSTRAD PC1512, does not provide easy means with which to type in commands
not covered by its own pull-down menus. A notable omission is the inability
to look at the contents of text files, e.g. the DOS TYPE command, and
others.
To cover for the above shortage there is a DOS shell command, «ENTER DOS
COMMANDS» in the «OPTIONS» pull-down menu. This command, however, is not
user friendly, since it always shells out into the root directory, C:\ in
my case.
The GEMDOS.BAT file serves to overcome the above limitations by providing
the following features:
1. Double clicking on its ICON in its specified directory (A:\GEMAPPS in
the provided example) will cause a shell into the GEMAPPS directory.
2. Copying it into any other directory (i.e. dragging with the mouse) and
then double clicking on the new copy, will cause a shell into the chosen
directory. The new copy of the GEMDOS.BAT file will be automatically
removed from the chosen directory.
3. In either of the above two cases, this DOS shell utility allows typing
in a DOS command whilst still in the GEM environment. This command is
typed into the GEM «ENTER PARAMETERS» window which appears immediately
after double clicking on the ICON. The command may be constructed of up
to 10 words (9 interleaving spaces), inclusive of all its usual switches
and parameters; however, piping and redirection symbols " | < and > "
are not permitted.
The TYPE command, probably the most common use for this batch file, is
treated with the MORE filter, so as to get one screen full of
information at a time.
THE SPECIFIED DIRECTORY:
Since the program needs to know which copy of GEMDOS.BAT it is to delete
during a shell and which it is to keep, its default directory is specified
in line 5 of the file. It takes the form:
A:\GEMAPPS\GEMDOS GemDoS %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
~~~~~~~~~~
The underlined part of which may be edited to indicate the correct drive and
directory, e.g., C:\GEMAPPS, C:\BATCH, etc.
M. Greenfield 28 February, 1989