PRB: "Bad Filename" When Use COM2: Without COM1: Installed (23413)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
This article was previously published under Q23413
3.00 4.00 4.00b 6.00
MS-DOS
kbprg kbprb
SYMPTOMS
QuickBasic programs give a "Bad Filename" error on the OPEN COM2: statement
if COM1: is unavailable in the system as a device.
CAUSE
QuickBasic does not allow the use of the second communications port (COM2:)
if the first port (COM1:) is unavailable.
RESOLUTION
Below is a program that works around this behavior.
STATUS
This behavior is by design.
REFERENCES
Portions of this article were taken from the "Microsoft
Systems Journal," May 1987, Volume 2.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB23413 |
---|
|