home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1990
/
22
/
today.bat
< prev
next >
Wrap
DOS Batch File
|
1990-12-03
|
285b
|
11 lines
@ECHO OFF
REM Batch to get the environment variable TODAY and NOW
REM in the DIR-format, e.g. " 7-20-89" and "1:07p"
IF NOT %4.==. GOTO label
COPY /B C:\BAT\TODAY.BAT+,, > NUL
DIR C:\BAT\TODAY.BAT | FIND "TODAY" > TEMP.BAT
TEMP.BAT
:label
SET today=%3
SET now=%4
DEL TEMP.BAT