KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q68836: NMAKE Doesn’t Allow CD Command That Only Specifies Drive

Article: Q68836
Product(s): See article
Version(s): 1.11 1.12 | 1.11 1.12
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | buglist1.11 buglist1.12 | mspl13_basic
Last Modified: 5-FEB-1991

DOS and OS/2 command lines allow you to see the current directory of a
drive by using the CD (change directory) command. For example, the
command "CD D:" will return the current directory for the D drive.
Because this is a valid DOS or OS/2 command, NMAKE should allow you to
perform the command without error. However, when the NMAKE file below
is executed, the following message occurs:

   NMAKE: fatal error U1077: 'cd' :return code '1'

NMAKE treats the CD command as a special case and fails to execute the
command correctly.

Sample NMAKE File:

all:
   cd d:

Microsoft has confirmed this to be a problem in NMAKE versions 1.11
and 1.12. We are researching this problem and will post new
information here as it becomes available.

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.

Copyright Microsoft Corporation 1986-2002.