Change Directory Command Can Use Colon Parameter from NTFS

Last reviewed: May 12, 1997
Article ID: Q106165
The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1

SYMPTOMS

A colon (:) is accepted as a parameter for the change directory (CD) command at the Windows NT command line when the current volume is formatted for NTFS. This results in the current directory becoming the previous directory with a colon appended as if it were a valid subdirectory name. This results in some unpredictable behavior for other command line utilities such as COPY when you attempt to transfer files between the "current" directory and the "parent" directory because these both evaluate to the same physical location.

The following is an illustration of the effect:

   F:\DIR
    Volume in drive F is fffff
    Volume Serial Number is 6C15-9A0F

    Directory of F:\

   10/14/93  01:33p                     5 test.p
   10/14/93  01:33p                     5 test.q
   10/14/93  01:32p                     0 test.s
   08/03/93  08:33a                     5 test.t
                 4 File(s)         15 bytes
                             19724288 bytes free
   F:\CD :
   F:\:\DIR
    Volume in drive F is fffff
    Volume Serial Number is 6C15-9A0F

    Directory of F:\:

   10/14/93  01:33p                     5 test.p
   10/14/93  01:33p                     5 test.q
   10/14/93  01:32p                     0 test.s
   08/03/93  08:33a                     5 test.t
                 4 File(s)         15 bytes
                             19724288 bytes free

   F:\:\copy test.p ..
           1 file(s) copied.
   F:\:\

Note that you cannot usually copy a file over itself.

STATUS

Microsoft has confirmed this to be a problem with Windows NT and Windows NT Advanced Server version 3.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: prodnt
Keywords : kbbug3.10 kbother ntfault
Version : 3.1
Platform : WINDOWS


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: May 12, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.