@echo off
set "destination=%%~dpI"
for /r %%f in (*.*) do (
copy %%f +*
)
I have this batch script, and it works perfectly fine as long as the current directory has no spaces. If there are spaces, this doesn't work. How can I fix this?
@echo off
set "destination=%%~dpI"
for /r %%f in (*.*) do (
copy %%f +*
)
I have this batch script, and it works perfectly fine as long as the current directory has no spaces. If there are spaces, this doesn't work. How can I fix this?