-
December 16th, 1999, 01:48 AM
#1
[RESOLVED] Problems printing from DOS programs
I'm trying to get a DOS based program to print in windows 95. The printer is on a network and captured to LPT3. In the Windows environment I bring up a DOS prompt, run the program, and then try to print. I get the following error message:
Write fault error writing to device PRN
Abort, Retry, Ignore, Fail?
Is there a way around this?
Thanks
-
December 16th, 1999, 06:28 AM
#2
You can try this:
Right-click on the Dos-prompt shortcut, choose properties, Program. Make the 1st line C:\Windows\Command.com /K set prn=lpt3
Your program looks for PRN and in this way I try to pipe the command to the printer port.
Hope it helps.
Ate
------------------
If my English seems double Dutch: I'm a Dutch single!
-
December 16th, 1999, 08:08 AM
#3
Cygnus, the reason your getting the error is because the dos program is trying to dump the print job out to LPT1. Does the software have the ability to change the lpt port in the utility settings?
Ate's idea looks great. Couple of other ways to use his command would be to put in your autoexec.bat file. Then it would load at bootup. Or you could create a batch file to start the dos app and include the command there. You could also have a line at the end of this batch file to reset it back to lpt1 if you need it.
If you're happy and you know it......it's your meds.
-
December 16th, 1999, 06:52 PM
#4
I tried your suggestion and added the line:
SET PRN=LPT3
to the batch file used to run the program. It worked, thanks guys.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|