; If the current day is 06-20-19, then the following command ; will set current_day to "20" SETMID current_day = %date 2 4 SET today = %date ; If today is 06-20-19 and current_day is 20, ; then this command will set the value of today ; to the last day of the previous month DATESUB today current_day MAKEDIR today