手机
当前位置:查字典教程网 >编程开发 >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】相关文章:

accesskey 提交

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

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

jquery实现弹出层效果实例

onmousewheel event 缩放图片效果

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

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

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

JavaScript中String.match()方法的使用详解

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

精品推荐
分类导航