Networking Forums

Networking Forums > Computer Networking > Windows Networking > Capture Printer

Reply
Thread Tools Display Modes

Capture Printer

 
 
Rick
Guest
Posts: n/a

 
      06-02-2005, 06:19 PM
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!!!


 
Reply With Quote
 
 
 
 
Robert L [MS-MVP]
Guest
Posts: n/a

 
      06-02-2005, 07:33 PM
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!!!


 
Reply With Quote
 
Rick
Guest
Posts: n/a

 
      06-02-2005, 08:02 PM
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!!!


 
Reply With Quote
 
Robert L [MS-MVP]
Guest
Posts: n/a

 
      06-03-2005, 02:03 AM
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!!!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT: usb video capture John Broadband 8 09-20-2011 03:08 PM
Packet capture Kalyan Linux Networking 1 11-28-2007 11:20 AM
Packet capture Kalyan Wireless Internet 1 11-28-2007 05:02 AM
Capture LPT port? Danny Gallegos Windows Networking 1 11-21-2006 11:32 PM
how to capture ARP packets (among others) ? Siddharth Jain Linux Networking 9 08-30-2005 03:09 PM



1 2 3 4 5 6 7 8 9 10 11