If you copy a file in Windows Explorer, and paste into the same folder, Windows automatically renames the copy to avoid a name collision.
creates a copy called
MyFile - Copy.docx
Subsequent copies get (n) added.
MyFile - Copy(2).docx
Is there a straightforward way to emulate this behavior using a command-line bat file?
I was thinking of using a date stamp to make the copy unique but that is not nearly as straightforward as I had expected it to be. I’m reviewing code samples for that and I’m sure they work but I can’t understand what the syntax means and I don’t like to use code when I don’t understand every last character.