I see that there are different related questions (e.g. this or this other),
but none seems to deal with my problem.
I am trying to copy all the PDF files that I have in subfolder
into the current folder.
The following command works well if I put the .bat file and subfolder
on the Desktop:
for /R "%cd%\subfolder" %%f in (*.pdf) do copy %%f ".\"
However, if I put the subfolder and the .bat file in a position characterized by longer path, the script doesn't work anymore. The path has spaces and underscores, no special characters.
Any help would be highly apppreciated.