首页 > 其他 > 详细

【vbs】查询客户端上的应用程序

时间:2018-08-29 19:45:41      阅读:157      评论:0      收藏:0      [点我收藏+]

方法一:

strHost?=?"."
Const?HKLM?=?&H80000002
Set?objReg?=?GetObject("winmgmts://"?&?strHost?&?_
????"/root/default:StdRegProv")
Const?strBaseKey?=?_
????"Software\Microsoft\Windows\CurrentVersion\Uninstall\"
objReg.EnumKey?HKLM,?strBaseKey,?arrSubKeys
?
For?Each?strSubKey?In?arrSubKeys
????intRet?=?objReg.GetStringValue(HKLM,?strBaseKey?&?strSubKey,?_
????????"DisplayName",?strValue)
????????
????If?(strValue?="Vbsedit")?and?(intRet?=?0)?Then
????????WScript.Echo?strValue
????End?If
Next

【vbs】查询客户端上的应用程序

原文:https://www.cnblogs.com/acadia/p/9556368.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!