8
0

Set-FileOwner: Added new batch script

This commit is contained in:
KammM 2025-03-05 09:12:40 +01:00
parent e2fc83c7c4
commit 98f440ec7c
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
@echo off
IF [%1] == [] GOTO Parameter
set user=%USERDOMAIN%\%USERNAME%
takeown /f %1
icacls %1 /grant "%user%":F
goto Ende
:Parameter
echo Es muss ein Dateiname angegeben werden: take [DATEINAME]
:Ende
pause

Binary file not shown.