1 Screenshot
2 Source code
/*
* FileVersion.cpp
* Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2008/12/12
#include <sol\FileVersion.h>
void _tmain(int argc, const TCHAR* argv[])
{
if (argc !=2) {
_tprintf(_T("Usage:FileVersion.exe ApplicationFilePath\n"));
_tprintf(_T("Example:FileVersion.exe c:\\Windows\\notepad.exe\n"));
return;
}
try {
FileVersion version(argv[1]);
_tprintf(_T("Comments = %s\n"), version.getComments());
_tprintf(_T("CompanyName = %s\n"), version.getCompanyName());
_tprintf(_T("FileDescription = %s\n"), version.getFileDescription());
_tprintf(_T("FileVersion = %s\n"), version.getFileVersion());
_tprintf(_T("InternalName = %s\n"), version.getInternalName());
_tprintf(_T("LegalCopyRight = %s\n"), version.getLegalCopyRight());
_tprintf(_T("LegalTrademarks = %s\n"), version.getLegalTrademarks());
_tprintf(_T("OriginalFilename = %s\n"), version.getOriginalFilename());
_tprintf(_T("ProductName = %s\n"), version.getProductName());
_tprintf(_T("ProductVersion = %s\n"), version.getProductVersion());
_tprintf(_T("PrivateBuild = %s\n"), version.getPrivateBuild());
_tprintf(_T("SpecialBuild = %s\n"), version.getPrivateBuild());
} catch (int err) {
_tprintf(_T("Error: %d\n"), err);
}
}
Last modified: 2 May 2016
Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.