<script language="VBScript">
strComputer = "."
intcount = 0
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery ("Select * from Win32_Product where name='Vbsedit' ")
For Each objSoftware In colSoftware
document.write ( "Name: " )
document.write ( objSoftware.name )
document.write ( " " )
document.write ( "Description: " )
document.write ( objSoftware.Description )
document.write ( "<br>" )
intcount = intcount + 1
Next
document.write ( intcount )
</script>查找 安装了的程序。
strComputer = "."
intcount = 0
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery ("Select * from Win32_Product where name='Vbsedit' ")
For Each objSoftware In colSoftware
document.write ( "Name: " )
document.write ( objSoftware.name )
document.write ( " " )
document.write ( "Description: " )
document.write ( objSoftware.Description )
document.write ( "<br>" )
intcount = intcount + 1
Next
document.write ( intcount )
</script>查找 安装了的程序。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货