Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
What is wrong in the script ?
Background info:
OS = W2K Winbatch Compiler = 2002G Extender=Printer Extender Task = Using pSetPrtInfo()to change the port.Script:
AddExtender("WWPRT34i.DLL") CurPrinterLst=pGetPrtList( 0) Targetprinter="HP LaserJet 5Si" PrnExist=ItemLocate (CurPrinterLst, Targetprinter, @tab) tPrtPort=pGetPrtInfo( Targetprinter, 4) CPPResult=pSetPrtInfo(Targetprinter, 4, "COM2") Exit
ErrorMode(@OFF) CPPResult=pSetPrtInfo(Targetprinter, 4, "COM2") ErrorMode(@CANCEL) If CPPResult == 0 errcode = pGetErrorCode() errmsg = pGetErrorMsg() Message(errcode, errmsg) exit Endif
The line should read:
CPPResult=pSetPrtInfo(Targetprinter, 4, "COM2:")
Article ID: W16353
File Created: 2005:02:18:12:19:58
Last Updated: 2005:02:18:12:19:58