Zend certified PHP/Magento developer

From a path, all files, including those stored in subfolders, but not the subfolder-structures themselves, only the files, are to be copied?

Good evening dear OS community,

I have a specific question about xcopy…

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:UsersUserDocumentsMy GamesFarmingSimulator2022mods.

The basic code would look like this:

xcopy /s /h /y /d /q "Y:Server-MODS" "C:UsersDocumentsMy GamesFarmingSimulator2022mods"

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, you know what I mean?

What do I need to add? How does the batch code look right?