Computing.Net > Forums > Disk Operating System > Print to file from DOS under W98

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Print to file from DOS under W98

Reply to Message Icon

Name: Mike H
Date: November 18, 2002 at 08:19:02 Pacific
OS: W98/DOS
CPU/Ram: Pentium I, 48
Comment:


I am running an old GWBASIC program in a Window of W98. I have a critical need to redirect the print output that would normally go to LPT1 to a file on C:. I have tried Prn2file, Lpttofl and neither work properly. Either that or I am setting something incorrectly. HELP!!



Sponsored Link
Ads by Google

Response Number 1
Name: JackG
Date: November 18, 2002 at 09:27:18 Pacific
Reply:

Are you sure they are not working? What do you expect to be in the output file?

Many GWBASIC programs that output to the printer assume a Graphics (9 pin dot matrix) printer and do the output to the LPT1 port in graphics mode. ie. a hex bit stream and control codes that represent the dots to be printed on the page. This Graphics data stream is not understood by most Windows printers.

If you were expecting ASCII text characters and carriage control codes in the output file, then you must make sure the GWBASIC program is doing non-graphic or text mode output only.


0

Response Number 2
Name: elric
Date: December 7, 2002 at 04:01:54 Pacific
Reply:

G'day,

I think you could re-write part of the programme and instead of using "print", just replace it with the file equivalent.
IE open "filename.ext" as #1 for append
and then write to it instead of the printer.
I'm not sure of the commands but I'm sure one of the many software gurus here could flesh it out for you.
Good luck
elric


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Print to file from DOS under W98

dos printing to file www.computing.net/answers/dos/dos-printing-to-file/11516.html

Printing to a file from Dos www.computing.net/answers/dos/printing-to-a-file-from-dos/2708.html

dos print to a file www.computing.net/answers/dos/dos-print-to-a-file/1263.html