Microsoft KB Archive/107364

From BetaArchive Wiki

FIX: COPY FILE Fails with Error "File Does Not Exist"

ID: Q107364

2.50a WINDOWS kbprg kbfixlist kbbuglist kberrmsg

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.5a


The COPY FILE command fails if ".." is used to reference the parent directory of the source file.


Microsoft has confirmed this to be a problem in FoxPro 2.5a for Windows. This problem was corrected in FoxPro 2.5b for Windows.


Steps to Reproduce Problem

In the Command window, issue the following commands:

   SET DEFAULT TO c:\test
   COPY FILE ..\config.sys TO config.sys

These commands should copy the CONFIG.SYS file from the root directory to the C:\TEST directory, but instead the error message "File c:\\config.sys does not exist" is displayed.


MS DOS uses ".." to reference the parent directory of the current directory. For example, if you are currently in the C:\DOS directory and want to copy a file to the C:\FOXPROW directory, these two MS-DOS commands would accomplish the same thing:

   COPY <filename> C:\FOXPROW\<filename>
   COPY <filename> ..\FOXPROW\<filename>

Because C:\ is the parent directory of the C:\DOS directory, ..\FOXPROW is exactly the same as C:\FOXPROW when it is referenced from the C:\DOS directory. Additional reference words: FoxWin 2.50a buglist2.50a fixlist2.50b errmsg err msg KBCategory: kbprg kbfixlist kbbuglist kberrmsg KBSubcategory: FxenvAutoexec Solution Type : kbfix

Last Reviewed: October 14, 1997
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.