手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >List Information About the Binary Files Used by an Application
List Information About the Binary Files Used by an Application
摘要:DescriptionReturnsthenameandproductcodeofbinaryinformation(suchasbitma...

Description

Returnsthenameandproductcodeofbinaryinformation(suchasbitmaps,icons,executablefiles,andsoon)usedbyaWindowsInstallerapplication. ScriptCode

复制代码 代码如下:

varwbemFlagReturnImmediately=0x10;

varwbemFlagForwardOnly=0x20;

varobjWMIService=GetObject("winmgmts:.rootCIMV2");

varcolItems=objWMIService.ExecQuery("SELECT*FROMWin32_Binary","WQL",

wbemFlagReturnImmediately|wbemFlagForwardOnly);

varenumItems=newEnumerator(colItems);

for(;!enumItems.atEnd();enumItems.moveNext()){

varobjItem=enumItems.item();

WScript.Echo("Caption:"+objItem.Caption);

WScript.Echo("Data:"+objItem.Data);

WScript.Echo("Description:"+objItem.Description);

WScript.Echo("Name:"+objItem.Name);

WScript.Echo("ProductCode:"+objItem.ProductCode);

WScript.Echo("SettingID:"+objItem.SettingID);

WScript.Echo();

}

【List Information About the Binary Files Used by an Application】相关文章:

javascript鼠标滑动评分控件完整

js实现从右向左缓缓浮出网页浮动层广告的方法

JavaScript中fixed()方法的使用简介

怎么用javascript进行拖拽第1/2页

JavaScript的Backbone.js框架的一些使用建议整理

js实现一个链接打开两个链接地址的方法

JQuery控制Radio选中方法分析

禁止按回车键提交表单的方法

JS面向对象(3)之Object类,静态属性,闭包,私有属性, call和apply的使用,继承的三种实现方法

浅谈JavaScript中的Math.atan()方法的使用

精品推荐
分类导航