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();
}