<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    常用鏈接

    統計

    最新評論

    How to check file properties through WMI command line (fw)

    How to check file properties through WMI command line

    24.Sep.2009 | by Gusac | Filed in: Articles, Tutorials

    With the lack of Graphical Interface on Windows 2008 Core server there comes a need of performing a lot of task through command line. One of which is checking file properties like file version, path, product verision etc. Luckily we have a command that makes this task simple. On a side note, We can also run the same command on other operating systems like Windows Xp, 2003, vista.

    Here is the command:
    wmic datafile where name='c:\\windows\\system32\\notepad.exe'

    Click here to view the enlarged screenshot

    Notice that we have used two backslashes \\ in the file path. Also, notice that the path is enclosed in the single quotes.
    The output will be confusing to read in command prompt window. To read and understand it better, we can take the output in text format and read it in notepad.

    While doing so, please do NOT wrap the text.
    wmic datafile where name='c:\\windows\\system32\\notepad.exe' > out.txt

    Click here to view the enlarged screenshot

    The output will reveal the file properties like Hidden, Path, Drive, Version Caption, Access rights etc.

    To get one particular property of a file we need to modify the command a little bit. We need to use the GET Alias injunction to the command mentioned above. Let's say we want to check the version for the file notepad.exe. The command that is used for this is:
    wmic datafile where name='c:\\windows\\system32\\notepad.exe' get version

    Similarily, there is a list of properties that can be fetched through this command line. They are:

    Access Rights
    Caption
    Class Name
    Compressed
    Compression Method
    Computer System Class Name
    Computer System Name
    Creation Date
    Current File Open Count
    Description
    Drive
    Eight Dot Three File Name
    Encrypted
    Encryption Method
    File Extension
    File Name
    File System Class Name
    File System Name
    File Type
    Hidden
    Install Date
    Last Accessed
    Last Modified
    Manufacturer
    Name
    Path
    Readable
    Should Be Archived
    Size
    Status
    System File
    Version
    Writeable

    posted on 2011-12-07 22:29 九寶 閱讀(361) 評論(0)  編輯  收藏 所屬分類: Win

    主站蜘蛛池模板: **实干一级毛片aa免费| 日韩国产欧美亚洲v片| 精品国产免费人成网站| 好爽好紧好大的免费视频国产| 亚洲AV日韩综合一区尤物| 在线看片无码永久免费视频| 亚洲福利视频网址| 久草视频免费在线观看| 亚洲第一页在线播放| 日韩国产免费一区二区三区| 亚洲小说区图片区| 精品国产免费观看久久久| 亚洲国产成人无码AV在线影院| 国产精品jizz在线观看免费| 免费视频成人国产精品网站| 亚洲av午夜成人片精品电影 | 国产精品亚洲mnbav网站| 丰满妇女做a级毛片免费观看| 亚洲男人在线无码视频| 成人性生交大片免费看中文| 亚洲A∨无码一区二区三区| 国产电影午夜成年免费视频| 亚洲国产成人精品激情| 四虎永久在线免费观看| 中国一级特黄高清免费的大片中国一级黄色片| 久久91亚洲人成电影网站| 59pao成国产成视频永久免费 | 亚洲AV日韩AV永久无码免下载| 88av免费观看入口在线| 中文字幕亚洲综合久久综合| 亚洲精品动漫人成3d在线| 国产一级片免费看| 亚洲小说图区综合在线| 亚洲综合精品网站在线观看| 久久99热精品免费观看动漫| 亚洲性色精品一区二区在线| 亚洲精品蜜桃久久久久久| 色妞WWW精品免费视频| 中文字幕不卡免费视频| 久久精品国产亚洲AV久| 国产亚洲情侣一区二区无|