How to get the printer port name á la "NE01:"?
-
I am trying to make a little utility, that will delete from workstations an old network printer connection, add new one and set it as the default printer. I am using NT4.0. To be able to set the default printer, I need to know the port name. When I use PRINTER_INFO_2, I get the IP-address like "123.32.12.89:XJPRINT". I got the same using PORT_INFO. I would need to know the "weird" NExx: port name. Like currently my default printer is in port NE04. I can find in the registry a list of my printers (e.g. \\SERVER01\HP4100 -> "winspool,Ne04:,15,45"), but is there an another way to get that "Ne04" information?? Ps. Whatta heck is that NExx: for??? :wtf: Compatibility issue with older windows versions? ------------------------------------------ Experience is the name every one gives to their mistakes. -- Oscar Wilde Experience is one thing you can't get for nothing. -- Oscar Wilde
-
I am trying to make a little utility, that will delete from workstations an old network printer connection, add new one and set it as the default printer. I am using NT4.0. To be able to set the default printer, I need to know the port name. When I use PRINTER_INFO_2, I get the IP-address like "123.32.12.89:XJPRINT". I got the same using PORT_INFO. I would need to know the "weird" NExx: port name. Like currently my default printer is in port NE04. I can find in the registry a list of my printers (e.g. \\SERVER01\HP4100 -> "winspool,Ne04:,15,45"), but is there an another way to get that "Ne04" information?? Ps. Whatta heck is that NExx: for??? :wtf: Compatibility issue with older windows versions? ------------------------------------------ Experience is the name every one gives to their mistakes. -- Oscar Wilde Experience is one thing you can't get for nothing. -- Oscar Wilde
-
..and so I digged the registry. ;) (just talking to myself) ------------------------------------------ Experience is the name every one gives to their mistakes. -- Oscar Wilde Experience is one thing you can't get for nothing. -- Oscar Wilde