well, just a hint. for the "scheduling" you will be using the "at" command
ex: at 16:30(which is 4:30 pm) [command]
on the command prompt, type "at /?"
for the renaming, to get the current month date(in 2 digits)
%date:~-10,2%
the -10 signifies the beggining of where to start
the date is in a 10 digit format xx/xx/xxxx
slashes count as a digit too.
and the end is 10
so the -10 will start at the beggining and the 2 is how many digits to count
so it will return as 05
%date:~-9,1% = 5
%date:~-7,2% = the current date in days(19)
so if you combine %date:~-10,2% and %date:~-7,2% (%date:~-10,2%%date:~-7,2%)
youll get 0519
so when you rename.
ren (thedatebefore)filename %date:~-10,2%%date:~-7,2%filename
to rename the day before to the new date youll have to set a variable and minus a day from it
set daycurrent=%date:~-7,2%
set /a daybefore=%days%-1
rem so now, daybefore is the current day - minus one - was 19 now its 18
if %daybefore% LSS 1 (
set monthcurrent= %date:~-10,2%
set /a monthbefore=%monthcurrent% - 1
set yesdate=%monthcurrent%%daycurrent% )
set yesdate=%monthcurrent%%daycurrent%
rem since we have YESTERDAYS date, we can rename it
ren %yesdate%(the rest of your files name) %date:~-10,2%%date:~-7,2%(the rest of your files name)
rem it will take 0518filename.txt and rename it to 0519filename.txt
So this is basicly what it takes to rename a timestamp