Printing Delayed when DOS PRINT Command Invoked from SHELL (28208)
The information in this article applies to:
- Microsoft QuickBASIC 2.0
- Microsoft QuickBASIC 2.01
- Microsoft QuickBASIC 3.0
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
This article was previously published under Q28208 SUMMARY
If you invoke the MS-DOS PRINT.EXE or PRINT.COM utility during a SHELL,
the printer output does not print until you exit QuickBasic. This
problem occurs because MS-DOS Print is a terminate-and-stay-resident
(TSR) program.
CAUTION: You should never install a TSR program, such as MS-DOS Print,
with the SHELL statement because it fragments memory. This can result
in the error "Out of Memory" or "Program Too Large to Fit in Memory,"
or it may hang the computer. You must reboot to eliminate the memory
fragmentation.
If you must SHELL to a TSR program, it must have been installed in
memory before running the QuickBasic program. Note: Many TSR programs
may conflict with QuickBasic with other symptoms, and may not be
compatible.
Instead of SHELLing to Print, Microsoft recommends simply SHELLing to
the MS-DOS COPY statement, which can copy files to the logical printer
device name, as follows:
shell "copy c:\myfile.txt LPT1:"
shell "copy c:\myfile.txt PRN"
This information applies to Microsoft QuickBasic versions 2.0, 2.01,
3.0, 4.0, 4.0b, and 4.5 for MS-DOS, and to Microsoft Basic
Professional Development System (PDS) versions 7.0 and 7.1 for MS-DOS.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB28208 |
---|
|