Guidance
指路人
g.yi.org
Software / Reginald / Examples / repository / Printing / Ports / Props.rex

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
/* Lists properties of all the TCP/IP printer ports installed on a computer */
strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colports =  objwmiservice~execquery("Select * from Win32_TCPIPPrinterPort")
DO objport OVER colports
	SAY "Description:" objport~description
	SAY "Host Address:" objport~hostaddress
	SAY "Name:" objport~name
	SAY "Port Number:" objport~portnumber
	SAY "Protocol:" objport~protocol
	SAY "SNMP Community:" objport~snmpcommunity
	SAY "SNMP Dev Index:" objport~snmpdevindex
	SAY "SNMP Enabled:" objport~snmpenabled
END
掌柜推荐
 
 
¥1,420.00 ·
 
 
¥950.00 ·
 
 
¥288.00 ·
 
 
¥738.00 ·
 
 
¥397.00 ·
 
 
¥750.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-07-16 20:49:16