I want my VB App to do it for me. We have a large network with a print
server in each building. All the print servers have the same alias. For
example, if you are in Denver and you ping LCL-PRNT-SVR, you will see the
print server in Denver. If you are in Salt Lake and ping LCL-PRNT-SVR you
will see the print server in Salt Lake. However, the printer shares are not
the same. They are something like PR_IBM1130 or PR_OKIB6300 or PR_HP4050.
We have travelling users with laptops that connect up in whatever building
they happen to be in that day. I have an app that can enumerate the print
shares in the building using the alias. Now I want the user to be able to
select one of the print shares, click a button and have it added and set as
default.
This is where the problem is. I can enumerate the print shares, but I don't
know how to add a printer programmatically to the local pc.
<mm*******@capstonetechnology.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If I understand your question, I used to do this often. I would add a
printer in the UK to my workstation in the US.
All I did was add the printer from the control panel. You will need
permissions to access the printer before it will let you add it though.
The printer syntax will be something like this:
\\servername\printername