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
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!!
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
Summary: I had a similar problem. Do you specifically require an output to file (.prn file) or are you trying to find a way to print from a DOS app on a Windows only printer? I've tried prn2file and I can't ge...
Summary: Is it possible to print a *.bmp directly to a file without any user intervention? If so, how? I have been able to bring up the "Print To A File" dialog box by using the command pbrush.exe /*.bmp /p b...