@echo off :: --------------------------------------------------------------------------- :: SETUP BUILD DATE :: --------------------------------------------------------------------------- set "ISO_DATE=" if exist "%~dp0\..\Utilities\Date.exe" ( for /F "tokens=1,2 delims=:" %%a in ('"%~dp0\..\Utilities\Date.exe" +ISODATE:%%Y-%%m-%%d') do ( if "%%a"=="ISODATE" set "ISO_DATE=%%b" ) ) if "%ISO_DATE%"=="" ( echo. && echo "Failed to set up build date!" echo. && pause && exit ) echo. echo Build Date: %ISO_DATE% echo.