We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a04fa commit b05520dCopy full SHA for b05520d
1 file changed
BuildArc.cmd
@@ -33,7 +33,7 @@ goto :eof
33
:GET_EXE_VERSION
34
35
SET EXE_PATH=%1
36
-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
37
set /P EXE_VERSIONTMP=<_tmp_.txt
38
set EXE_VERSION=%EXE_VERSIONTMP: =%
39
del _tmp_.txt
0 commit comments