CODE: [Copy to clipboard]@echo off type nul>C:\test\a.txt echo y|cacls "C:\test\a.txt" /d everyone echo y|cacls "C:\test" /p %username%:r