>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.
That's called a UNC name (UNC stands for "Universal Naming Convention"). There's an API called WNetGetConnection that might give you what you're looking for.