-2
@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?

G27nS4gD
  • 1
  • 2

0 Answers0