FIX: "Cannot Read from Drive" Error with FoxPro Distribution Kit

Last reviewed: October 20, 1997
Article ID: Q120246
2.5x 2.6x | 2.00 2.5x 2.60
WINDOWS   | MS-DOS
kbother kberrmsg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x

SYMPTOMS

When an .EXE file that was created with the FoxPro Distribution Kit is executed, one of the following error messages is displayed:

   Cannot read from drive <drive name>

   -or-

   Error reading drive <drive name>

This problem occurs when the .EXE file is executed on a machine other than the machine on which it was created.

NOTE: In addition to the above error, when the same problem occurs on

      Windows NT, an "I/O operation failed" error message is returned.


CAUSE

The .EXE file was created on a computer with drive letters higher than C.

Physical and logical drive types that can cause this problem include the following:

  • RAM drives
  • Compressed drives (such as DoubleSpace, DriveSpace, Stacker)
  • Removable drives (such as Bernoulli)
  • CD-ROM drives
  • Hard disk drives with more than one partition
  • Network drives

This problem can also occur on systems with more than one physical hard disk drive.

RESOLUTION

Create the .EXE file on a computer that does not have a drive letter higher than C. The computer on which the .EXE file is created should not have any physical or logical drives other than drive C.

NOTE: There are several potential causes for this problem. Some of these causes are documented in other Knowledge Base articles. If the resolution documented in this article does not resolve the problem, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q108165
   TITLE     : ERR: Cannot Read from Drive <Drive Letter>

   ARTICLE-ID: Q114293
   TITLE     : BUG: "Error 1002 (I/O Operation Failure)" When Starting
               CatMan

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0 for Windows.

MORE INFORMATION

This problem does not affect all systems with drives higher than C:. If you currently have a drive higher than C: on your system, you may not encounter this problem. This article is intended to provide assistance to customers who do encounter this problem or who want to minimize the potential for problems with an application that will be distributed with the Distribution Kit.


Additional reference words: VFoxWin 3.00 Fixlist3.00 FoxDos FoxWin
buglist2.00 buglist2.50 buglist2.50a buglist2.50b buglist2.60 buglist2.60a
2.00 2.50 2.50a 2.50b 2.60 2.60a real virtual errmsg
KBCategory: kbother kberrmsg kbfixlist kbbuglist
KBSubcategory: FxnetworkGeneral
Keywords : FxnetworkGeneral kbbuglist kberrmsg kbfixlist kbother
Version : 2.5x 2.6x | 2.00 2.5x 2.60
Platform : MS-DOS WINDOWS
Solution Type : kbfix


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