We help IT Professionals succeed at work.

Redirecting LPT1 output to a file?

hstein
hstein asked
on
Medium Priority
2,300 Views
Last Modified: 2011-09-20
I have an old DOS program that prints directly to the printer.  I want to be able to capture these reports so that I can print them at other times.  Unfortunately this program doesn't have an option to print to a file.  How can I redirect my LPT1 output to a file?

Comment
Watch Question

Commented:
You can create another port (LPT2) and set that up to be a "save as file" printer... (Under options, you must choose spool DOS prrint jobs)

- matt

Commented:
Are you running the DOS program within antoher operating system?

Author

Commented:
Thanks, but it won't work.  My program only prints to LPT1.  I figured out a solution that worked.  I redirected it to a network drive using "capture L=1 cr=s:\work\file.txt" . This works.

 

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.