Skip to main content

mito_exe_version.exe

Project Status
Outdated (some functionality might be old)

Small program for EXE-file version detection. It receives filename from command line and put the number of it version to standard output. It can be used for build process automation. For example we use it to create archive of program with number of this program in archive name right after build.

Usage

mito_exe_version.exe path_to_file [output_prefix]

Command-line usage example:

D:\temp> mito_exe_version.exe MiToDirChangesWatcher.exe
1.1.2.0
D:\temp> mito_exe_version.exe MiToDirChangesWatcher.exe "This is version "
This is version 1.1.2.0

BAT-file usage example for archive building with version number in filename:

@echo off
rem Setting %S_VERSION% environment variable
FOR /F "usebackq" %%i IN (`mito_exe_version.exe MiToDirChangesWatcher.exe`) DO SET S_VERSION=%%i
rem Show version
echo Current version is %S_VERSION%
rem Create archive with version number and date in filename
"C:\Program Files\7-Zip\7z.exe" a -mx=9 MiToDirChangesWatcher_%S_VERSION%_.7z MiToDirChangesWatcher.exe

There is no separate category for this program in Support because it too small. Please mail to support@mito-team.com if you have any questions or suggestions.

Links