@echo off
:: This batch file allows you to run programs on certain days.
:: Have this TODAY.BAT program CALLed from your AUTOEXEC.BAT.
:: TODAY.BAT will read entries in a TODAY.INI file you must make.
:: The entries in the TODAY.INI should look like this:
:: 10-12-1999=DeleteOldDocs.bat
:: 10-13-1999=Scandisk.bat
:: 10-14-1999=PrintReports.bat
:: Put the date into the DATE environment variable
:: Response to DATE command should be like
:: Current date is Sun 10-12-1997
:: Enter new date (mm-dd-yy):
@echo.|date|find /i “current”>#urrent.bat
@echo set date=%%4>current.bat
call #urrent.bat
del ?urrent.bat
:: Put the command for today into TODAYSCOMMAND variable
:: Assumes existence of TODAY.INI in current directory
find “%date%=” today.ini | sort /r | date | find “=” > en#er.bat
@echo set todayscommand=%%5> enter.bat
call en#er.bat
del en?er.bat > nul
:: Cleanup – delete DATE variable and INI entry (so it only runs once)
type today.ini|find /v “%date%”>today.ini
set date=
:: Run today’s command
call %todayscommand%
set todayscommand=
:: _____________________________________________________
:: If the command for the day requires user input, for
:: examp