I need to copy a file C:\plst.m3u
into all subfolders of C:\Music
. I'm using this command:
FOR /R "C:\Music" %G IN (.) DO xcopy "C:\plst.m3u" %G
It works, but only for the paths, which doesn't contain spaces.
So, in the path C:\Music\AB\
, it successfully creates plst.m3u
in the AB
folder. But for the path C:\Music\A B\
it returns error: invalid number of parameters
Here, I'm out of ideas. Any suggestions?