Wednesday, November 25, 2009

Does anyone know how to write a dos batch file that will print a file to a networked printer.?

I need to write a batch file to redirect a file from an winNT machine to the printer that is connected to lpt1 on another WinNT machine.



the address of the printer is LPT1\\2515\hplaserJet



Any help would be great,



thanks



Does anyone know how to write a dos batch file that will print a file to a networked printer.?microsoft works



I think you can use the following:



capture lpt1: \\2515\hplasterJet



c:\file.txt %26gt; lpt1:



That is assuming you have the printer shared on the other computer.

No comments:

Post a Comment

 
c++