I have been using the below script and it works great except it only creates a folder with the current date on it. I need one to do the same but create a folder with yesterday's date on it. Thank you in advance.
Echo For /f "tokens=1,2,3,4,5 delims=/. " %%a in ('date/T') do set CDate=%%d.%%b.%%c Echo %cdate% MD "U:\folder\%Cdate%" move /-y "U:\Folder**.PDF" "U:\Folder\%Cdate%"
Pause