Microsoft KB Archive/94779

= Disk not ready Error Saving File After Change to Invalid Drive =

PSS ID Number: 94779

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q94779



SYMPTOMS
After executing the CHDRIVE statement in code to change the current drive to one that has no disk in it, attempting to save your program results in the following error message:

Disk not ready

You can't save the program to a valid drive.



WORKAROUND
To work around this problem, insert a disk into the drive that needs a disk, or in the Immediate window, use the CHDRIVE statement to change the current drive to a valid drive.



STATUS
Microsoft has confirmed this to be a bug in the Standard and Professional Editions of Microsoft Visual Basic version 1.0 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
 Start VBDOS.EXE. In the Immediate window, type the following and press the ENTER key:

CHDRIVE &quot;A:&quot; 'Make sure there is no disk in drive A

 From the File menu, choose the &quot;Save File As...&quot; menu item, type in a file name, and then press the ENTER key. Make sure you specify a valid drive. The Disk not ready dialog box pops up even though you tried to save the file to a valid drive. Choose the Cancel button to continue.</ol>

Additional query words: VBmsdos buglist1.00 1.00 errmsg

Keywords: KB94779

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.