set ASMINFO=PropertiesAssemblyInfo.cs
FINDSTR /C:"[assembly: AssemblyVersion(" %ASMINFO% | sed.exe "s/[assembly: AssemblyVersion("/SET CURRENT_VERSION=/g;s/")]//g;s/.*//g" >SetCurrVer.cmd
CALL SetCurrVer.cmd
DEL SetCurrVer.cmd
echo Current version is %CURRENT_VERSION%
call .exe %CURRENT_VERSION%