I'm trying to flatten an existing directory with subdirectories into another directory using xxcopy.
My command currently looks like:
xxcopy .\VisitraxImages .\VisitraxImagesNew /s /sx
Unfortunately this command results in filenames that contain the former subfolder's name in them.
For example, if a file named
bob.joe.TR.2.13.13.pdf in the source directory (
.\VisitraxImages) was in a sub-directory called
the_directory, when it copies over to the newly flattened directory (
.\VisitraxImagesNew) it would be named
bob.joe.TR.2.13.13'the_directory.pdf instead of
I would rather exclude the duplicate filename and be notified of duplicate filenames in the command output than outright change the filename all together. Is there a way to do this?