MiTo Team


Small programm 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 proccess automation. For example we use it to create archive of programm with number of this programm in archive name right after build.


  1. mito_exe_version.exe path_to_file [output_prefix]

Command-line usage example:

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

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

  1. @echo off
  2. rem Setting %S_VERSION% environment variable
  3. FOR /F "usebackq" %%i IN (`mito_exe_version.exe MiToDirChangesWatcher.exe`) DO SET S_VERSION=%%i
  4. rem Show version
  5. echo Current version is %S_VERSION%
  6. rem Create archive with version number and date in filename
  7. "c:\Program Files\WinRAR\WinRAR.exe" A -agYYYY-MM-DD MiToDirChangesWatcher_%S_VERSION%_.rar MiToDirChangesWatcher.exe

There is no separate category for this programm in Support because it too small. Please mail to if you have any questions or suggestions.