

NOVELL TECHNICAL INFORMATION DOCUMENT

DOCUMENT PROCESSING INFO:  This document replaces FYI-M-1408
TITLE:  Login Script for Compaq Dos 3.31 & DR DOS 6.0
DOCUMENT ID:  TID800056
DOCUMENT REVISION:  A
DATE:  18AUG94
AUTHOR:  CEREKSON;DPARTRID
ALERT STATUS:  Yellow
DISTRIBUTION:  Public
INFORMATION TYPE:  Symptom Solution
README FOR:  NA
NOVELL PRODUCT CLASS:

Desktop Products

NOVELL PRODUCT and VERSION:

DR DOS 6.0

CATEGORY:

Installation

ABSTRACT:

N/A

-----------------------------------------------------------------
DISCLAIMER
THE ORIGIN OF THIS INFORMATION MAY BE INTERNAL OR EXTERNAL TO NOVELL. 
NOVELL MAKES EVERY EFFORT WITHIN ITS MEANS TO VERIFY THIS INFORMATION. 
HOWEVER, THE INFORMATION PROVIDED IN THIS DOCUMENT IS FOR YOUR INFORMATION
ONLY.  NOVELL MAKES NO EXPLICIT OR IMPLIED CLAIMS TO THE VALIDITY OF THIS
INFORMATION.
-----------------------------------------------------------------

SYMPTOM

ERROR MESSAGE: INVALID COMMAND.COM WHEN SHELLING TO DOS FROM APPLICATIONS.

DR DOS and COMPAQ DOS 3.31 will both map to the same DOS directory on a
NetWare server.

CAUSE

When a client running DOS attaches to the server and logs in to this
environment, it is important that the client's DOS PATH and COMSPEC
variables be adjusted to "point" (or MAP) to the server's copy of the
client's DOS files.  This is normally accomplished by editing the System
Login Script.  This is a sample Login Script for MS-DOS:

MAP INS S2:=SYS:PUBLIC/%OS/%OS_VERSION

The System Login Script will handle the mapping properly for most OS's. 
However, when DR DOS is the DOS client's operating system the %OS and
%OS_VERSION variables actually return MS-DOS and v3.31 respectively.

DR DOS has been designed to be most compatible with MS-DOS/COMPAQ DOS
version 3.31 and this is the version that it reports.  As a result, both
COMPAQ DOS 3.31 and DR DOS will be mapped to the same sub-directory on the
NetWare server's hard drive.

SOLUTION

DR DOS automatically sets two environment variables called OS and VER
which equal DRDOS and 6.0 respectively. The DR Multiuser DOS OS variable
is equal to DRMDOS.  Using these preset variables it is actually possible
to test the DOS client operating system in the System Login Script to
determine if the DOS client is running COMPAQ DOS 3.31 or DR DOS 6.0. 
Once the DR DOS client is detected, the Login Script will map the client
to a directory with DR DOS files.

This sample System Login Script explains and implements such a technique:

REM  These lines establish environment variables OS and VER
REM  if the DOS client is NOT running DR DOS (any version).
REM  That is, any DOS client operating system other that
REM  DR DOS does not already maintain the environment
REM  variables OS and VER, and as a result,
REM  they need to be set.

IF <OS> != "DRDOS" AND <OS> != "DRMDOS" THEN BEGIN
     DOS SET OS="%OS"
     DOS SET VER="%OS_VERSION"
END

REM  All that's left to be done is to map the DOS client using
REM  the DOS environment variables <OS> and <VER>.

MAP INS S2:=%FILE_SERVER/SYS:PUBLIC/%MACHINE/%<OS>/%<VER>
COMSPEC=S2:COMMAND.COM


The above script would result in the following:

Compaq DOS 3.31's map would be: SYS:PUBLIC\PC_DOS\MSDOS\3.31\

DR DOS 6.0's map would be: SYS:PUBLIC\PC_DOS\DRDOS\6.0\

DR Multiuser DOS's map would be: SYS:PUBLIC\PC_DOS\DRMDOS\5.1\

-----------------------------------------------------------------
Any trademarks referenced in this document are the property of their
respective owners.  Consult your product manuals for complete trademark
information.
-----------------------------------------------------------------
