I would like to specify the date via CLI when running robocopy so that the destination folder includes the date.
robocopy C:\folder\ Z:\folder_DATE /E /ZB /COPYALL /NP /V /LOG:F:\backup_log.txt
Where DATE is the current date. Is this possible or would I have to resort to power shell?
I found this Stack Overflow article but am looking to keep it simpler.
You didn't really say what the format of the date you wanted, so I'm going by yyyymmdd. That'll probably suit sorting better as the days, months and years go on.
You can change the date however you want with the %%c being the year %%b being the month and %%a being the day. Just reorder them to your need.
Here's my suggestion: