WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.


Printer Controller

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Problem with pAddPrtCon

Keywords: 	   pAddPrtCon


I am trying to execute the function pAddPrtConn and all that is returned is -112.
This is my code:
ret=pAddPrtConn("\\servername", "LASER4")

Then if I execute pGetErrorMsg(), it tells me "Invalid Network Address".

I am following the example in the help file.


There was an error in the Printer Controllers documentation and it has been changed.

NOTE: Do not use any slashes on either of the parameters (server or printer sharename).
Try the following:

ret=pAddPrtConn("servername", "LASER4")

Article ID:   W12547
Filename:   Problem with pAddPrtCon documentation.txt
File Created: 2017:07:28:13:58:38
Last Updated: 2001:03:01:15:39:00