"No Such File or Directory" Message with File Compare (FC.EXE)

Last reviewed: August 21, 1995
Article ID: Q134571
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

When you use the file compare command, Fc.exe, and you use wildcards in the second argument of the command, the Fc.exe command reports that there is no such file or directory.

For example, if you have two files in a directory, one named a_long_file_name and the other named a_really_long_file_name, when you carry out the command

   fc a_long_file_name a_really_*

the fc command reports

   Comparing files a_long_file_name and a_really_le_name
   FC:cannot open a_really_le_name - No such file or directory

instead of the expected action of comparing the a_long_file_name file to the a_really_long_file_name file.

CAUSE

When you use wildcards in the second argument, the Fc.exe command matches the second argument against the first argument instead of matching the files in the current directory.

RESOLUTION

Type the second argument in full if you do not intend to match the second argument against the first argument.


KBCategory: kbenv
KBSubcategory: posfest win95
Additional reference words: 95 dos command


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: August 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.