LameXP/etc/Deployment/_date.bat

23 lines
527 B
Batchfile
Raw Normal View History

@echo off
2014-12-22 22:40:20 +01:00
:: ---------------------------------------------------------------------------
:: SETUP BUILD DATE
:: ---------------------------------------------------------------------------
2011-04-21 20:35:03 +02:00
set "ISO_DATE="
2014-12-22 22:40:20 +01:00
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"
)
)
2014-12-22 22:40:20 +01:00
if "%ISO_DATE%"=="" (
echo. && echo "Failed to set up build date!"
echo. && pause && exit
)
echo.
echo Build Date: %ISO_DATE%
echo.