Set-FileOwner: Added new batch script
This commit is contained in:
parent
e2fc83c7c4
commit
98f440ec7c
14
examples/Batch/Set-FileOwner/Set-FileOwner.bat
Normal file
14
examples/Batch/Set-FileOwner/Set-FileOwner.bat
Normal 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
|
||||
BIN
examples/Batch/Set-FileOwner/Take.zip
Normal file
BIN
examples/Batch/Set-FileOwner/Take.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user