List the codec files on a computer

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.