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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled Print Task 1

Status
Not open for further replies.

dburnham

Programmer
Oct 18, 2001
118
0
0
US
I need to schedule a task that will print a test doc once a week. My original thought was to put a batch file in the scheduled tasks using the old DOS Print command. However, I have one printer running on USB and another on an IP address. The Print command will not open the ports to send the doc to the printer.

Is there another way to do this?

The machine is running w2k.

Any and all help is appreciated.
 
I've had the same problem, and this was my fix:
1.Enable printer sharing on the usb printer.
2.Run:
net use lpt2 \\computername\sharename /persistent:yes
3.Make a new batchfile named Printr.bat, with the code-
@echo off
copy %1 lpt2

4.Test it by typing printr.bat "filename"
FYI-you may need to change lpt2 in steps 2 & 3 to another configuration.

Good luck! Let us know your results!

X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top