Microsoft KB Archive/66531

= Copying from CON to a Subdirectory Doesn't Result in Error =

Article ID: 66531

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q66531



SYMPTOMS
If you have a directory called C:\TEMP and you try to create a file called TEMP using the COPY CON command as follows   C:\>copy con temp hello ^Z instead of creating a file called TEMP, MS-DOS echoes &quot;hello&quot; and &quot;1 file copied&quot; on the screen as follows:   C:\>copy con temp hello ^Z hello 1 file(s) copied No error message is displayed.



CAUSE
This is expected MS-DOS behavior. When C:\TEMP is a directory, the command   C:\>copy con temp is the same as   C:\>copy con C:\temp\*.* -or-   C:\>copy con C:\temp\con CON is short for console and consists of the keyboard (input) and the display (output). It always exists, even in subdirectories. Therefore, this command copies input from CON (keyboard) to CON (display).

Additional query words: 6.22 3.20 3.30 3.30a 4.00 5.00 5.00a 6.00 6.20

Keywords: KB66531

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.