I can easily use xcopy to copy files to another location
xcopy “\\Source\*.*” “\\Destination\” /y/s
but I would then like the copied files to be renamed to append “Copy of ” or similar to the start of the file.
I have managed code which will replace the first 8 characters of the filename
xcopy “Source\*.*” “destination\Copy of *.*” /y /s
but haven’t a way of appending this.
Can anyone help?
(Note: H:\Destination needs to exist before this command runs.)
How To Ask Questions The Smart Way