Questions

Robocopy target name date

+
0 Votes
Locked

Robocopy target name date

JamoSV
Hi!

Does anyone know, how to use different target name every time robocopy copies data to a target folder. Different name I would like to use, should be target name+date.

Regards
Jamosv
+
0 Votes
pnoykalbo
Collapse -

Well, here's the pattern and should be your stepping stone:


robocopy filename.txt > \folder\newfilename.txt

You can also use variables:
robocopy filename.txt > newfilename%date%.txt

I hope this will help.