Printer script using - TechRepublic
General discussion
February 11, 2002 at 01:25 AM
mccabe

Printer script using

by mccabe . Updated 24 years, 5 months ago

We gather some mainframe print jobs to a folder and run a script against the jobs. The script contains a command to find the numbered print job, print it and delete it. The script uses a printer name called printer and prints to a sahred printer offthe LPT1 port. I want to keep the script , but aim to a network printer that is not attached to any computer. Here’s a snip of part of the script.

NET USE LPT1 /D
NET USE LPT1 \\%COMPUTERNAME%\PRINTER
Then the script looks for the jobs to print.
COPY j160.001 LPT1
del j160.001
COPY j160.002 LPT1
del j160.002
COPY j160.003 LPT1
del j160.003
COPY j160.004 LPT1
del j160.004

What would be the command to aim it to a printer on the lan that has an IP addy instead of LPT1 ?

This discussion is locked

All Comments