Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file for printing ?

Status
Not open for further replies.

chief39

Technical User
Aug 4, 2002
14
US
I need a batch file for win2k pro to print a text file.
I can go into cmd.exe and use print /d:LPT1 c:\911\wbfc.txt
and it works fine but can't make it work from .bat file. Thanks for your help!

Glenn
 
Hi,

Try gigving this thing from barch file.
TRy to map the printer first frouseing this command


"Net use lpt1: \\servername\printersharename"
"print c:\filename"

This worked for me.

HTH Aslam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top