Recently I was asked how to make a DOS application print from Windows Vista or XP if there is no Parallel Port. This is actually quite easy and takes only a few simple steps.
net use lpt1 \\pc-name\printer-name
c:\folder\dos-application
Now in Windows XP, all you have to do is run the batch file and it works.
With Windows Vista, there is a slight catch. when you run it, you may not get anything or you may get an error that asks you for a password. If either of these happen to you:
Happy computing,
Tim
- Install the printer on another printer and make sure it prints.
- Share the printer and note the computer-name and printer's share-name.
- On the printer that has the DOS program, create a batch file that looks like this:
net use lpt1 \\pc-name\printer-name
c:\folder\dos-application
Now in Windows XP, all you have to do is run the batch file and it works.
With Windows Vista, there is a slight catch. when you run it, you may not get anything or you may get an error that asks you for a password. If either of these happen to you:
- close it out and go back to where the batch file is located.
- Right-click on the batch file and choose "Run As Administrator".
- You can now run the program and print to LPT1.
Happy computing,
Tim
Labels: General PC Advice, How To, Tech Talk, Windows Vista Irritations
DiggIt! Del.icio.us
Responses to “Print From a DOS Application”
Post a Comment