@echo off
set "destination=%%~dpI"
for /r %%f in (.) do (
copy "%%f" +
)
Before copying, I want to change the current directory to the location of the file, so the file copies over itself. How can I do this?
@echo off
set "destination=%%~dpI"
for /r %%f in (.) do (
copy "%%f" +
)
Before copying, I want to change the current directory to the location of the file, so the file copies over itself. How can I do this?