From 9b733421864ef89892fed287dd43386e96aa312d Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Thu, 16 Feb 2023 12:45:08 +0100 Subject: [PATCH] bugfix --- scripts/set-permissions.cmd | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/set-permissions.cmd b/scripts/set-permissions.cmd index b9dfa7f..68b815d 100644 --- a/scripts/set-permissions.cmd +++ b/scripts/set-permissions.cmd @@ -5,20 +5,23 @@ set TOOLS=c:\tools echo ####### %0 ####### +takeown /F c:\*.txt /A +icacls c:\*.txt /inheritance:r +icacls c:\*.txt /grant Administrators:F +icacls c:\*.txt /grant Users:RX + +echo. takeown /F %T% /R /A /D Y 1>nul icacls %T% /inheritance:r icacls %T% /grant Administrators:F /t /c /l 1>nul icacls %T% /grant Users:RX /t /c /l 1>nul +echo. takeown /F %TOOLS% /R /A /D Y 1>nul icacls %TOOLS% /inheritance:r icacls %TOOLS% /grant Administrators:F /t /c /l 1>nul icacls %TOOLS% /grant Users:RX /t /c /l 1>nul -takeown /F c:\*.txt /A 1>nul -icacls c:\*.txt /inheritance:r -icacls c:\*.txt /grant Administrators:F 1>nul -icacls c:\*.txt /grant Users:RX 1>nul - +echo. echo ####### %0 #######