{"id":579,"date":"2011-03-03T15:04:26","date_gmt":"2011-03-03T15:04:26","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=579"},"modified":"2022-02-17T06:24:04","modified_gmt":"2022-02-17T06:24:04","slug":"reading-file-version","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/file-input-output-serialization\/reading-file-version","title":{"rendered":"Reading File Version"},"content":{"rendered":"<pre><code>\r\n\ttry\r\n\t{\r\n\t\tFileVersionInfo ^FileVersion1 = FileVersionInfo::GetVersionInfo(Environment::GetFolderPath(Environment::SpecialFolder::ProgramFiles) + \"\\\\Some Folder\\\\SomeApplication.exe\");\r\n\t\tsTemp = \"App Version: \" + Convert::ToString(FileVersion1-&gt;FileVersion) + \"\\r\\n\";\r\n\t}\r\n\tcatch (Exception ^)\r\n\t{\r\n\t}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>try { FileVersionInfo ^FileVersion1 = FileVersionInfo::GetVersionInfo(Environment::GetFolderPath(Environment::SpecialFolder::ProgramFiles) + &#8220;\\\\Some Folder\\\\SomeApplication.exe&#8221;); sTemp = &#8220;App Version: &#8221; + Convert::ToString(FileVersion1-&gt;FileVersion) + &#8220;\\r\\n&#8221;; } catch (Exception ^) { }<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-579","post","type-post","status-publish","format-standard","hentry","category-file-input-output-serialization"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=579"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/579\/revisions"}],"predecessor-version":[{"id":1049,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/579\/revisions\/1049"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}