Give full (and recursive) rights to the current user on a file/folder
Run the following command:
icacls.exe <C:/path/to/folder> /grant %username%:(OI)(CI)F
OI – object inherit – recursively for child files
CI – container inherit – recursively for child folders
F – full rights