Automatically copy files without overwriting, but creating numbered ones instead
Posted
by
user1688322
on Stack Overflow
See other posts from Stack Overflow
or by user1688322
Published on 2012-09-21T09:11:37Z
Indexed on
2012/09/21
9:37 UTC
Read the original article
Hit count: 256
I need to copy files at a regular interval, eg once an hour so I tried setting up an xcopy batch saying it should copy the files it needs to copy to another folder. Now when it copies, it overwrites the files which is not what it is supposed to do.
When a file is copied, it should create a new file instead, named something like File.txt, File-COPY1.txt, File-COPY2.txt or something like that.
Any way to do that?
Thanks in advance.
© Stack Overflow or respective owner