home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol11n15.zip / CURR_UPD.BAT < prev    next >
DOS Batch File  |  1991-10-14  |  550b  |  17 lines

  1. @ECHO OFF
  2. REM:
  3. REM   ###  Batch File Program to set Environment Variable  ###
  4. REM   ###  CURR = to the current MO DAY YR  HR MIN AM/PM   ###
  5. REM:
  6. REM   ###  Create a 0 byte file  ###
  7. REM > SET-CURR.BAT
  8. REM   ###  Get current date and time into SET-CURR.BAT  ###
  9. DIR SET-CURR.BAT > SET-CURR.BAT
  10. REM   ###  Edit SET-CURR.BAT to set Environment Variable  ###
  11. REM   ###  CURR equal to the current date and time       ###
  12. EDLIN SET-CURR.BAT < UPDATE.SCR > NUL
  13. REM   ###  Set CURR  ###
  14. call set-curr
  15. REM   ###  Cleanup  ###
  16. DEL SET-CURR.*
  17.