I have quit a no. (around 150 daily) of system generated text files that need to print to a network printer. I try to automate this one via a batch job by using LPR (Print command seems not work for network printers) but it constantly saying that either the server or the printer is not find. Actually, the network printer is the (one and only one printer) default printer for that machine and its name as appear in Start->Control Panel->Printer is 4200_PRT2 on HKPDC (IP:10.52.3.10). I do tried to use server name as well as IP address but seems not work either. The line of LPR command is as follow :
lpr -S 10.52.3.10 -P 4200_PRT2 -J Daily_Log D:\Temp\20060830client.txt
Can anyone help me on this ? Thanks!