Microsoft KB Archive/32729

= &quot;Path/File Access&quot; Opening a &quot;NUL&quot; File on a Novell Network =

Article ID: 32729

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Compiler 6.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Professional Development System 7.0

-



This article was previously published under Q32729



SUMMARY
It has been reported that opening a &quot;NUL&quot; file on a Novell Network gives a &quot;Path/File access&quot; error message if you are not running on the server machine.

Another customer reported that opening a &quot;NUL&quot; file when the current drive is a server on a Token Ring Network gives a &quot;Disk Not Ready&quot; message. The same test on the IBM PC Network gives an &quot;I/O error&quot;.

This information applies to Microsoft QuickBasic Versions 4.00 4.00b and 4.50, to Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS and MS OS/2, and Microsoft Basic PDS Version 7.00 for MS-DOS and MS OS/2.

You can work around the problem as follows: OPEN &quot;\DEV\NUL&quot; FOR OUTPUT AS #1



MORE INFORMATION
MS-DOS uses the &quot;\DEV\&quot; prefix for logical system filenames, and it does not attach a directory search path for the name. This applies only to the following system filenames: LPT1:, COM1:, COM2:, SCRN:, CON:, and NUL:. The colon may be omitted when referencing the logical filename.

Please note that Microsoft QuickBasic Versions 4.00, 4.00b, and 4.50, Microsoft Basic Compiler Versions 6.00 and 6.00b, and Microsoft Basic PDS Version 7.00 are designed only for the IBM PC Network or networks compatible with the MS-Net standard. Compiled Basic programs access the IBM PC Network and the MS Network with standard MS-DOS (Versions 3.00 and later) network calls. Microsoft QuickBasic and Microsoft Basic Compiler are not tested or supported on the Novell Network or IBM Token Ring Network.

Additional query words: QuickBas BasicCom

Keywords: KB32729

-

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

© Microsoft Corporation. All rights reserved.