WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Simulationen

Simulationen Alles zum Thema Simulation

Microsoft KARRIERECAMPUS

 
 
Themen-Optionen Ansicht
Alt 13.01.2007, 23:32   #8
torvald
Jr. Member
 
Registriert seit: 15.02.2004
Beiträge: 72


Standard

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
____________________________________
Always be tolerant in what you accept, always be strict in what you produce!
torvald ist offline   Mit Zitat antworten
 


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 22:54 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag