JSI Tip 10539. How can I extract common properties from .DLL and .EXE files at a command line?

Jerold Schulman

May 31, 2006

1 Min Read
ITPro Today logo in a gray background | ITPro Today


Download strfinfo.zip and unzip the StrFInfo.exe file.

When you type StrFInfo.exe /?, you receive:

[]-----------------------------------------------------------------[]| STRFINFO v03.310 : Extracts STRINGFILEINFO text from executables. ||                    (C)opyright Dennis Bareis 2002,2003            ||                    ALL RIGHTS RESERVED ([email protected]) |[]-----------------------------------------------------------------[]ERROR~~~~~The file "/?" does not exist!SYNTAX~~~~~~StrFInfo[.EXE] ExeDllOcxFileName  [Property1  [Property2 ...]]COMMON PROPERTIES~~~~~~~~~~~~~~~~~FileDescription  FileVersion     InternalName  OriginalFileNameProductName      ProductVersionCompanyName      LegalCopyRight$TranslationProperties are generated to stdout in the order supplied, one per line.A value of "FAILED" means a propery did not exist.A scripting language such as REXX, PERL or VBSCRIPT would normally be usedto parse the generated (redirected) output.A return code of 0 or 1 means that some properties exist.A return code of 1 means that NONE of those you requested exist.A return code of 2 means that the file does not exist.Any other return codes probably mean that STRFILEINFO is unavailable, notall executables will have the information.

When I typed StrFInfo.exe C:WINDOWSSYSTEM32ARP.EXE filedescription fileversion companyname, I received:

filedescription=TCP/IP Arp Commandfileversion=5.1.2600.0 (xpclient.010817-1148)companyname=Microsoft Corporation

When I typed StrFInfo.exe C:WINDOWSSYSTEM32ARP.EXE, I received:

CompanyName=Microsoft CorporationFileDescription=TCP/IP Arp CommandFileVersion=5.1.2600.0 (xpclient.010817-1148)InternalName=arp.exeLegalCopyright=¬ Microsoft Corporation. All rights reserved.OriginalFilename=arp.exeProductName=Microsof Window Operating SystemProductVersion=5.1.2600.0Author=FAILEDComments=FAILEDDownload=FAILEDLicense=FAILEDMaintainer=FAILED$Translation=040904B0



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like