Menu

Can not get wmic command for file version to work

Anonymous
2014-11-12
2014-11-13
  • Anonymous

    Anonymous - 2014-11-12

    I have tried to get the fileversion to be displayed both of the below WMIC commands work using the CMD box, without tail and head, but when added to the out.conf
    All I get is a blank after the labels. What is wrong with these or should I use something different to get the fileversion. This is for windows 2008 R2 using 3.3.6 .

    GCSDriverRuntime: X wmic datafile "C:\Program Files (x86)\APCI\OPC\GCSDriverRuntime.exe" get version | tail -2 | head -1
    GCSDriverRuntime2: X wmic datafile where name="C:\Program Files (x86)\APCI\OPC\GCSDriverRuntime.exe" get version tail -2 | head -1

    Thanks,

    Dana Anderson
    Electronics Equipment and Services
    Principal Development Engineer
    Air Products and Chemicals
    7201 Hamilton Blvd.
    Allentown PA 18195-1501
    Mail Stop R3102
    andersdl@airproducts.comandersdl@airproducts.com
    (610)-481-4371 Work
    (610)-706-7447 Fax (E-mail Delivery)
    (610)-573-9210 Cell

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.