Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: tomorrow day of the week
; MY CODE: (problem will occur if this code ; is run today 9/16/1999) now=TimeYmdHms() julianday=TimeJulianDay(now) day= julianday mod 7 day= day + 2 ; plus 2 makes runday equal to ; tomorrows day of the week. runday=ItemExtract(day,"Friday Saturday Sunday Monday Tuesday Wednesday Thursday"," ") pause(runday,runday)
Add 2 to it BEFORE the MOD operation...
You probably want...
; MY CODE: (problem will occur if this code ; is run today 9/16/1999) now=TimeYmdHms() julianday=TimeJulianDay(now) julianday= julianday + 2 ; plus 2 makes runday equal to ; tomorrows day of the week. day= julianday mod 7 runday=ItemExtract(day,"Friday Saturday Sunday Monday Tuesday Wednesday Thursday"," ") pause(runday,runday)
Article ID: W14312
Filename: Tomorrows Day of the Week.txt
File Created: 1999:10:26:11:23:14
Last Updated: 1999:10:26:11:23:14