Adding different version of same file
Posted: 29 Jun 2016 07:51
Problem:
I have a file that copies files from one source drive/directory to a target drive/directory.
I would like, however, for the batch commands to copy the same files but, instead of replacing in the target drive/directory, to add the files with a number, so I can go back and retrieve changed information from previous files, if necessary. E.g. - I copy textfile.txt, then when I copy the file again, instead of replacing it, it leaves the original file in place, and copies the newer file with a _01 added, etc.
I am a neophyte at this, by the way.
textfile.txt
textfile_01.txt
textfile_02.txt
Many thanks in advance
Peter
I have a file that copies files from one source drive/directory to a target drive/directory.
I would like, however, for the batch commands to copy the same files but, instead of replacing in the target drive/directory, to add the files with a number, so I can go back and retrieve changed information from previous files, if necessary. E.g. - I copy textfile.txt, then when I copy the file again, instead of replacing it, it leaves the original file in place, and copies the newer file with a _01 added, etc.
I am a neophyte at this, by the way.
textfile.txt
textfile_01.txt
textfile_02.txt
Many thanks in advance
Peter