Im trying to write a batch file that copy itself to startup folder, so the file will be executed each restart. Im using this command, but I keep getting "access denied":
@echo off XCOPY txt.txt "C:\Users\%username%\AppData\Roaming\Microsoft\Windows\StartMenu\Programs\Startup" /y /c /h /o /b
When I try to move the file manually, i need to click on a "Continue" button, so I guess I cannot access to the destination. How can i access to the folder and copy the file?