>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