Page 1 of 1

Quick way to use file permissions ?

Posted: 22 Oct 2021 13:26
by flourgrader
Hi Guys,
I have a set of files I do NOT want deleting.
(I want to write protect them)

I have been playing around with file permissions
inside Windows 10.
I find them very long winded and prone to making mistakes.
Or they just plain don't work after setting them up.
Is there a quicker easier way of doing this inside XYplorer ver 22.30.0200 ?
Batch handling of files would also be very useful in this context?
Here is an example of what I am referring to.

1. Right mouse click on "TestFile.TXT
2. Click on Properties
3. Click on Security Tab
4. Click on Advanced Tab
5. Click on Disable inheritance

6. A prompt will appear with two options in it. Select the one that says Convert inherited permissions into explicit permissions on this object.

7.You’ll now see all of your user accounts listed on your screen. Click on the account that you want to prevent from deleting your file and then click on the Edit button. It’ll let you edit the file permissions for your selected account.

8. Click on Deny from the Type dropdown menu.

Thank You......... :appl:

Re: Quick way to use file permissions ?

Posted: 22 Oct 2021 14:28
by highend
Possible to do this via XY scripting? Sure (and no, there is no other way)
Quicker? Probably
Less error prone? That depends on the user^^

Have fun with: https://ss64.com/nt/icacls.html

Re: Quick way to use file permissions ?

Posted: 22 Oct 2021 15:10
by flourgrader
Thank you highend.
I will take a look at your Link.

Re: Quick way to use file permissions ?

Posted: 25 Oct 2021 06:20
by autocart
Depending on your exact needs, you might also want to search for AccessControl, here and in the XY help.

Re: Quick way to use file permissions ?

Posted: 25 Oct 2021 11:08
by flourgrader
Thank you

Re: Quick way to use file permissions ?

Posted: 25 Oct 2021 11:16
by highend
1. This would not be an "on the fly" operation (adding folders to the necessary .ini file)
2. You can't do things per directory, disallowed operations like "delete" are global

Re: Quick way to use file permissions ?

Posted: 25 Oct 2021 13:09
by autocart
highend wrote: 25 Oct 2021 11:16 1. This would not be an "on the fly" operation (adding folders to the necessary .ini file)
Sure, but the OP did not specifically say that he needed it to be that.
highend wrote: 25 Oct 2021 11:162. You can't do things per directory, disallowed operations like "delete" are global
Ok, thank you for pointing that out. I was not aware of that.

Re: Quick way to use file permissions ?

Posted: 25 Oct 2021 13:14
by flourgrader
Thanks highend/Autocart, for the Info
I was looking for a quick fix, Not a project,
I only do very simple Script.
As it's not an option I have missed, I will stick with the long
winded way of doing it.
Cheers.