How do I create a batch file to copy a file and if the destination already has the file it will add a number extension to it's name


Joined
Apr 4, 2021
Messages
1
Reaction score
0
How do I create a batch file to copy a file and if the destination already has a file with the same name it will add a number extension to it's name and complete the copy. Thus in that scenario I would have 2 files in the destination, one with the original name and one with the original name plus a number.

My goal is I want to keep the original file backup copy and all following backup copies.
 
Last edited:
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top