Orchid PCturbo 286e User Manual page 98

Super high performance accelerator/coprocessor system for pes, xts, and ats
Table of Contents

Advertisement

PCturbo
286e
a true condition or a 0 for a false condition.
The command line is usually followed by a
conditional command, which will be executed
if the ERRORLEVEL is as specified.
IS HOST - The errorlevel will be set to
I
if
the batch file was executing on the host
or a
0
if it was on the Turbo.
ISTURBO - The errorlevel is set to
I
if the
batch file is executing on the Turbo, or
a
0
if it was in the PC Mode.
NOTE: Refer to the DOS manuals for
details in using the error level commands.
Because the errorlevel command tests for
values equal to or greater than the
value specified, you should never test
for O. Always use
IF NOT ERRORLEVEL
1 ...
instead of
IF ERRORLEVEL 0 •••
Here's an example of a Batch File:
echo off
isturbo
if errorlevel
1
echo EXECUTING ON THE PCturbo
isturbo
if not errorlevel 1 echo EXECUTING ON THE PC
This batch file can be executed on either the
PC or PC turbo and wil! display the appropriate
' - /
message.
B-36

Advertisement

Table of Contents
loading

Table of Contents