Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To capture way of net of the printer.
Message
 
To
17/05/2004 15:32:31
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00904570
Message ID:
00904696
Views:
22
>Hi Barbara,
>
>What i want is to capture the way of net of the my chosen printer . if getprinter() return me "\\lazaro\hp-printer" the problem is solve, but nor always getprinter() return me this way .
>Sometimes it return "IP_100.132.1.10" or "Terminal Clinte 001',"Terminal Clinte 002',"Terminal Clinte 003', etc, etc....
>
>Thanks.
>
>Lázaro Santos.

In addition to Barbara's advice. This information is also available with the WSH.Network object.
oNet = CREATEOBJECT('WScript.Network')
oPrinters = oNet.EnumPrinterConnections
? oPrinters.Count
? oPrinters.Item(0)
? oPrinters.Item(1)
Note that the collection is zero based so the maximum value will be the Count property - 1. The items are paired.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform