Retrieve Network prn's share name & IP/NetBios (Solved)
Posted: Fri Oct 31, 2008 2:06 pm
Hi all,
Is there any way to get the netbios name/IP and printer's share name of a selected printer.
My intention is to create a string as follows
"\\PrinterName\PrinterSharename"
Later I need to use this string to map LPT port..
In my prg I am doing a command Copy test.txt to \\PrinterName\PrinterSharename
I am having a wierd problem with some of the shared Dot matrix printers in my network. When I check for the selected printers port it shows as LPT1 and which is not physically connected to my PC's LPT port.
Regards
Anser
Is there any way to get the netbios name/IP and printer's share name of a selected printer.
My intention is to create a string as follows
"\\PrinterName\PrinterSharename"
Later I need to use this string to map LPT port..
In my prg I am doing a command Copy test.txt to \\PrinterName\PrinterSharename
I am having a wierd problem with some of the shared Dot matrix printers in my network. When I check for the selected printers port it shows as LPT1 and which is not physically connected to my PC's LPT port.
Regards
Anser