Description
Uses WMI to return information about all the audio and video codec files installed on a computer.Script code CopyCodeCode: var wbemflagreturnimmediately = 0x10;
VaR wbemflagforwardonly = 0x20;
VaR ob1_miservice = GetObject ("winmgmts: \\\\\. \ Root \ cimv2 ");
VaR colitems = obw.miservice. execquery ("select * From win32_codecfile", "WQL ",
Wbemflagreturnimmediately | wbemflagforwardonly );
VaR enumitems = new enumerator (colitems );
For (;! Enumitems. atend (); enumitems. movenext ()){
VaR objitem = enumitems. Item ();
Wscript. Echo ("Access mask:" + objitem. accessmask );
Wscript. Echo ("ARCHIVE:" + objitem. Archive );
Wscript. Echo ("caption:" + objitem. Caption );
Wscript. Echo ("compressed:" + objitem. Compressed );
Wscript. Echo ("compression method:" + objitem. compressionmethod );
Wscript. Echo ("creation class name:" + objitem. creationclassname );
Wscript. Echo ("creation date:" + objitem. creationdate );
Wscript. Echo ("CS creation class name:" + objitem. cscreationclassname );
Wscript. Echo ("CS name:" + objitem. csname );
Wscript. Echo ("Description:" + objitem. Description );
Wscript. Echo ("drive:" + objitem. Drive );
Wscript. Echo ("Eight dot three file name:" + objitem. eightdotthreefilename );
Wscript. Echo ("encrypted:" + objitem. encrypted );
Wscript. Echo ("encryption method:" + objitem. encryptionmethod );
Wscript. Echo ("Extension:" + objitem. Extension );
Wscript. Echo ("file name:" + objitem. filename );
Wscript. Echo ("file size:" + objitem. filesize );
Wscript. Echo ("file type:" + objitem. filetype );
Wscript. Echo ("FS creation class name:" + objitem. fscreationclassname );
Wscript. Echo ("FS name:" + objitem. fsname );
Wscript. Echo ("group:" + objitem. group );
Wscript. Echo ("hidden:" + objitem. Hidden );
Wscript. Echo ("Install Date:" + objitem. installdate );
Wscript. Echo ("in use count:" + objitem. inusecount );
Wscript. Echo ("Last accessed:" + objitem. lastaccessed );
Wscript. Echo ("Last modified:" + objitem. lastmodified );
Wscript. Echo ("Manufacturer:" + objitem. Manufacturer );
Wscript. Echo ("name:" + objitem. Name );
Wscript. Echo ("Path:" + objitem. Path );
Wscript. Echo ("readable:" + objitem. readable );
Wscript. Echo ("status:" + objitem. status );
Wscript. Echo ("system:" + objitem. system );
Wscript. Echo ("version:" + objitem. version );
Wscript. Echo ("writeable:" + objitem. writeable );
Wscript. Echo ();
}