We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 368ba7e commit 98ec4d9Copy full SHA for 98ec4d9
BuildArc.cmd
@@ -37,7 +37,7 @@ goto :eof
37
:GET_EXE_VERSION
38
39
SET EXE_PATH=%1
40
-WMIC Path CIM_DataFile WHERE Name='%EXE_PATH:\=\\%' Get Version | findstr /v Version > _tmp_.txt
+powershell -NoLogo -NoProfile -Command "(Get-Item '%EXE_PATH%').VersionInfo.FileVersion" > _tmp_.txt
41
set /P EXE_VERSIONTMP=<_tmp_.txt
42
set EXE_VERSION=%EXE_VERSIONTMP: =%
43
del _tmp_.txt
0 commit comments