Hier eine Version des Scripts, die mit dem deutschen Datumsformat funktionieren müsste. Mit freundlicher Genehmigung von Scott Smart.
Code:
@echo off
REM Get useful date out of Windows XP
REM Set to same date in year 2005 ver 1.0
REM Original Version of this script was written in 2007 by
REM Scott Smart mail:75270.3703@earthlink.net
REM Here adjusted to work *only* with German date format dd.mm.yyyy
REM Set a local scope for the following variables
setlocal
for /F "tokens=1-4 delims=. " %%i in ('date /t') do (
set Day=%%i
set Month=%%j
set Year=%%k
)
date %Day%.%Month%.2005
start FlightSimManager.exe
sleep 5
date %Day%-%Month%-%Year%
REM End the local scope for variables
endlocal
Gruß, Daniel