thank you for the update.
Don't send e-mail or reply to me except you need consulting services. Posting on MS newsgroup will benefit all readers and you may get more help.
Bob Lin, MS-MVP, MCSE & CNE
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.
"Rick" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Acualy I knew about this but what I wanted to do was capture lpt1 to a
certain printer. I did figure it out I used AddPrinterConnection.
Thanks so much for taking the time to reply!!!
"Robert L [MS-MVP]" <(E-Mail Removed)> wrote in message
news:uF%(E-Mail Removed)...
this quotation based on setup default printer for network group, but it is
the same idea. quoted from
www.chicagotech.net/print.htm
How to setup a default printer based on a network group
' Add a network printer if the computer is a member of the group.
' Make this printer the default.
If IsMember(objComputer, "information_system") Then
objNetwork.AddWindowsPrinterConnection "\\chicagotech\cc041hp4050"
objNetwork.SetDefaultPrinter "\\chicagotech\cc041hp4050"
End If
Don't send e-mail or reply to me except you need consulting services.
Posting on MS newsgroup will benefit all readers and you may get more help.
Bob Lin, MS-MVP, MCSE & CNE
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.
"Rick" <(E-Mail Removed)> wrote in message
news:eYWNp%(E-Mail Removed)...
Is there a way when using a login script written in vbscript to capture a
printer?
In a batch file I just use net use lpt1 .... command but I am not sure in
vbscript.
Thanks for any help you can give!!!