home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1990 / 22 / today.bat < prev    next >
DOS Batch File  |  1990-12-03  |  285b  |  11 lines

  1. @ECHO OFF
  2. REM Batch to get the environment variable TODAY and NOW
  3. REM in the DIR-format, e.g. " 7-20-89" and "1:07p"
  4. IF NOT %4.==. GOTO label
  5. COPY /B C:\BAT\TODAY.BAT+,, > NUL
  6. DIR C:\BAT\TODAY.BAT | FIND "TODAY" > TEMP.BAT
  7. TEMP.BAT
  8. :label
  9. SET today=%3
  10. SET now=%4
  11. DEL TEMP.BAT