xcopy does specify a filename or directory name on the target

This is bad
xcopy "%~dp0rarreg.key" "%ProgramFiles%\WinRAR\rarreg.key" /Y
This is good
xcopy "%~dp0rarreg.key" "%ProgramFiles%\WinRAR\" /Y

No comments: