I am using the following script through windows cmd in automatically copying multiple files located/sourced from multiple subdirectories to a single directory:
cd /d "C:\example files\various\raw files"
for /r %d in (*) do copy "%d" "C:\example files\conso"
I put \y at the end of the script if I want to ovewrite duplicate files.
However, my dilemma is I want to not overwrite those files, instead automatically renaming them.
Is there any other command in the windows cmd that would try to copy those files and try to rename them if there are duplicates found?