From path Y:\Server-MODS
all files including those which are stored in subfolders, but not the subfolders themselves, but really only the files themselves are to be copied to the following path via xcopy C:\Users\User\Documents\My Games\FarmingSimulator2022\mods
.
The basic code would look like this:
xcopy /s /h /y /d /q "Y:\Server-MODS" "C:\Users\Documents\My Games\FarmingSimulator2022\mods"
The copying works, but not the way I describe it above or the way I would like it to work.
I just want all the files, including the ones in the subfolders, to be copied, but not with the folder(s) where the file is in, just the file thrown together with the other files from the other subfolders?