PRB: DX1350 or DX1270 Errors Caused by Environment Variable

ID: Q98561


The information in this article applies to:


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 query words: 1.00 1.30 5.50 6.10 6.10a 8.00


Keywords          : kb16bitonly 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: July 30, 1999