TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Vista All > Windows Vista - Networking / Sharing

Notices

Dynamic Connect Printer

Windows Vista - Networking / Sharing


Reply
 
Thread Tools Display Modes
Old 30-05-2008, 06:54 PM   #1
Madison
Guest
 
Posts: n/a
Dynamic Connect Printer

Hi There,
I wrote the program in VB6 to connect and remove printer when it needs. It
works fine with XP window but when we moved to Vista window that codes are
not working any more. Anybody has the way to get it works with Vista window.
Here is my coding for connecting printer

CardPrinter = "\\myserver\RM_color"
Set wshNetwork = CreateObject("Wscript.Network")
wshNetwork.AddWindowsPrinterConnection CardPrinter, "HP Color LaserJet 4500"
wshNetwork.SetDefaultPrinter CardPrinter

Set wshNetwork = Nothing

Thank you.
  Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:50 AM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional