PRB: Cannot Read from Drive <Drive Letter> (108165)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 6.0
  • Microsoft FoxPro for Windows 2.5
  • Microsoft FoxPro for Windows 2.5a
  • Microsoft FoxPro for Windows 2.5b
  • Microsoft FoxPro for MS-DOS 2.5
  • Microsoft FoxPro for MS-DOS 2.5a
  • Microsoft FoxPro for MS-DOS 2.5b

This article was previously published under Q108165

SYMPTOMS

Mainframe workstation software that maps drives D and E to hold them for future use when using emulation will cause the following error message to appear when a disk drive cannot be read:
Cannot read from drive <drive letter>.
Use of the MS-DOS Interlnk program and the INTERSVR command is also a source of this message. Interlnk's drive mapping redirects the client system's drives to the next available drive letters of the server. If INTERLNK.EXE is loaded in the CONFIG.SYS file of the client and the server PC is then disconnected, FoxPro will be told that sequential drive mapping exists, when, in fact, there will be no response when FoxPro checks the drives in sequence that were on the connected PC.

CAUSE

Some FoxPro operations appear to scan all consecutive disk drives.

The following operations have been reported to cause this error on computers with a drive that cannot be read:

  • Running an executable file (.EXE) created by the FoxPro Distribution Kit.
  • Opening a project whose home directory points to a drive that cannot be read.
  • Setting a printer driver in FoxPro for MS-DOS.

WORKAROUND

Reassign the drive letter of the device that cannot be read so that it is not in consecutive order with the other drives.

For example, if drive C is a hard disk drive, and drive D is a CD-ROM drive that causes the error message when it does not contain a disc, reassign the CD-ROM drive letter to drive Z.

You may need to either consult the manual for your CD-ROM drive or use the MS-DOS SUBST command. NOTE: Reassigning the drive letter may require the use of the LASTDRIVE=<drive letter> command in the CONFIG.SYS file.

MORE INFORMATION

The following hardware configurations may cause a disk drive to report that it cannot be read:

  • A laptop computer does not have a floppy drive A or B.
  • A CD-ROM drive does not contain a disc.
  • A removable hard disk drive does not contain a hard disk.

Modification Type:MajorLast Reviewed:12/3/2003
Keywords:kberrmsg KB108165