DOSBOX:LPRINT commands in QBasic to txt-file

December 27, 2010 at 04:17:02
Specs: Windows Vista
I would like to print the output from the LPRINT-command in the Qbasic application to a text-file. (Later on I can work on that text-file en print it from Windows-Vista). Under XP I used a program LPT2FILE in a batch file with :

lpt2file lpt1:=c:print.txt
lpt2file /c

All was printed in print.txt and could be used in for instance Notepad under Windows.
The file is still created but it remaines empty.
Does anyonde know an other way to catch the LPRINT output from a Qbasic program into a file?

See More: DOSBOX:LPRINT commands in QBasic to txt-file

Report •

December 28, 2010 at 16:12:31
I think you are trying to make it too complicated. Try...

MyProgr > c:print.txt

Not sure which version of DOS you are using but I believe redirection was support with 5.0 and up.

Report •

January 2, 2011 at 08:21:15
Thank you, but ....

Myprog > c:print.txt

redirect all the output to the screen now also to the file print.txt.
The printer-output (from the command LPRINT in Basic) isn't redirected to that file.

Report •

February 4, 2011 at 09:28:30
Please find how to do it at


Report •

Related Solutions

March 4, 2011 at 12:14:12
I've always used LPTX.COM, an old DOS program from Mark C. DiVecchio. Always has worked for me in Turbo/Power Basic through WinXP. Can't vouch for it on Vista or Win7.

Report •

Ask Question