for /R "c:\" %f in ("*.pdf") do xcopy %f "%USERPROFILE%\all\text" /s /c /d /e /h /i /r /y
This is the command I am using to copy all of the .pdf files on my computer into one folder. However, it does not copy the files from folders with spaces in them. I did my research already. I tried setting the
"c:\*.*", yet it still does not work.
How can I copy all .pdf files without changing the names of the folder?