[RESOLVED] Problems printing from DOS programs
Results 1 to 4 of 4

Thread: [RESOLVED] Problems printing from DOS programs

  1. #1
    cygnus Guest

    Resolved [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

  2. #2
    Ate Rowaan Guest
    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!

  3. #3
    Join Date
    Sep 1999
    Location
    Largo, Fl.
    Posts
    22,322
    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.

  4. #4
    cygnus Guest
    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
  •