Code: Select all
FormatTime, Today,, M.d.yy
FormatTime, NOW,, M.d.yy-h.mm.sst
FormatTime, HOUR,, H
Yesterday += -1, days
FormatTime, Yesterday, %Yesterday%, M.d.yy
if HOUR < 2
{
FileCopy, C:\PrintChit\pVenmo\resources\chit.png, C:\PrintChit\pArchive\dated\%Yesterday%\%SubjectClean%_%NOW%.png, 1
}
else
{
FileCopy, C:\PrintChit\pVenmo\resources\chit.png, C:\PrintChit\pArchive\dated\%Today%\%SubjectClean%_%NOW%.png, 1
}
This script runs on a loop, and waits 2 seconds between times it runs. So it is STARTED on the initial date, but then runs over past midnight. I wouldn't think this would matter, as the HOUR var should be resetting to the current hour on each loop right? After midnight, HOUR would = 0, or 1, so it should be then running the sort to "Yesterday" folder, but it's not... it's sorting to the current dates folder... ugh.
Help?