Created
September 13, 2014 12:55
-
-
Save hymkor/c252ff11a5ef630c84d6 to your computer and use it in GitHub Desktop.
EXEファイルのバージョン情報を表示(IronPython) ref: http://qiita.com/zetamatta/items/5ea10add126971ae31a6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MARKEDONE:~/bin> | |
✏ showver lua52.dll | |
5.2.3 5.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ipy -x "%~f0" %1 %2 %3 %4 %5 %6 %7 %8 %9 & exit /b | |
import System | |
import sys | |
for path1 in sys.argv[1:]: | |
vi = System.Diagnostics.FileVersionInfo.GetVersionInfo(path1) | |
if vi is None: | |
continue | |
print vi.FileVersion,vi.ProductVersion | |
# vim:set ft=python: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment