LameXP/etc/Deployment/_date.bat

14 lines
422 B
Batchfile
Raw Normal View History

@echo off
2011-04-21 20:35:03 +02:00
set "ISO_DATE="
set "LAMEXP_ERROR=1"
REM ------------------------------------------
if not exist "%~dp0\_date.exe" GOTO:EOF
2011-04-22 22:10:55 +02:00
set "DATE_TEMP_FILE=%TEMP%\~date.%RANDOM%%RANDOM%.tmp"
2011-04-21 20:35:03 +02:00
"%~dp0\_date.exe" +%%Y-%%m-%%d > "%DATE_TEMP_FILE%"
set /p "ISO_DATE=" < "%DATE_TEMP_FILE%"
del "%DATE_TEMP_FILE%"
set "DATE_TEMP_FILE="
echo BUILD DATE: %ISO_DATE%
REM ------------------------------------------
set "LAMEXP_ERROR=0"