Hello, I am trying to write a program that will allow users to select a printer from a listbox and have it automatically add it to their machine. I think im on the right track with the code, but I keep running into a strange issue:
The problem that im having is that for some reason, windows is trying to connect to MS, instead of MS - Library. I read here:
http://www.vbforums.com/showthread....Network-Printer-to-All-Profiles-on-a-Computer
That if your networked printer name contains spaces, then to put double quotes around it, but I tried every single quote combination possible and it didnt help. I also created a string with the name of the printer and tried using that, but no matter what it cant figure out how to read past the MS part. Any help would be appreciated.
Code:
Shell("rundll32 printui.dll,PrintUIEntry /in /n\\<PrintServerName>\MS - Library")
The problem that im having is that for some reason, windows is trying to connect to MS, instead of MS - Library. I read here:
http://www.vbforums.com/showthread....Network-Printer-to-All-Profiles-on-a-Computer
That if your networked printer name contains spaces, then to put double quotes around it, but I tried every single quote combination possible and it didnt help. I also created a string with the name of the printer and tried using that, but no matter what it cant figure out how to read past the MS part. Any help would be appreciated.