I would like to change a folders permissions with a startup script. The folder's name is C:\ABC and I would like to change the permission for the currently logged on user to full permission for this folder.
To be considered:
The user under which the script runs might very possibly not have Administrator privileges so the command might have to be executed specifying credentials or a user.
CACLS "C:\ABC\" /G %USERNAME%:F /Y