PRB: DX1350 or DX1270 Errors Caused by Environment Variable

Last reviewed: July 17, 1997
Article ID: Q98561
1.00 6.10 6.10a | 1.00
MS-DOS          | WINDOWS
kbtool kbprb

The information in this article applies to:

  • Microsoft Visual C++ for Windows, version 1.0
  • Microsoft FORTRAN PowerStation for MS-DOS, version 1.0
  • Microsoft Macro Assembler (MASM) for MS-DOS, versions 6.1 and 6.1a
  • Microsoft LINK for MS-DOS, version 5.5
  • Microsoft NMAKE for MS-DOS, version 1.3

SYMPTOMS

An attempt to run a Microsoft compiler, assembler, or utility that uses the DOSXNT MS-DOS extender may fail and generate one of the following messages:

   DOSXNT : fatal error DX1350: cannot load program : file not found
   Additional info: "xxx"

   DOSXNT : fatal error DX1270: command line error :
         unknown command switch xxx
   Info: Error in switch xxx of environment variable TNT (xxx)

   DOSXNT : fatal error DX1270: command line error :
         unknown command switch xxx
   Info: Error in switch xxx of environment variable GOTNT (xxx)

CAUSE

The DOSXNT MS-DOS extender searches the MS-DOS environment variables for the strings "TNT," "GOTNT," or any prefix of "TNT" or "GOTNT". Therefore, the following environment variables can cause the errors above:

   G, GO, GOT, GOTN, GOTNT, T, TN, TNT

To determine if any of these environment variables is installed, enter "SET" (without quotation marks) at the MS-DOS command prompt.

RESOLUTION

Use the MS-DOS SET command to remove the environment variable. For more information on this technique, please see below.

MORE INFORMATION

For a list of MS-DOS environment variables, enter the command "SET" (without quotation marks) at the MS-DOS prompt. Each environment variable is listed in the following form:

   <variable>=<value>

To remove an environment variable, use the SET command to assign the variable to a null string. For example, to remove the TNT variable, enter the following at the MS-DOS prompt:

   set tnt=

Do not specify any characters after the equals sign.

In Microsoft Windows, an environment variable set in an MS-DOS window is valid only in that window. To remove a variable that causes the problems above, you must exit Windows first, then enter the SET command above. Because the offending variable is most likely set in your AUTOEXEC.BAT file, you should edit that file to remove (or comment out) the offending SET statement.


Additional reference words: 1.00 1.30 5.50 6.10 6.10a 8.00
KBCategory: kbtool kbprb
KBSubcategory: CLIss FLIss MLIss
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.