Quick way to use file permissions ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
flourgrader
Posts: 26
Joined: 30 Dec 2014 15:35

Quick way to use file permissions ?

Post 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:

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Quick way to use file permissions ?

Post 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
One of my scripts helped you out? Please donate via Paypal

flourgrader
Posts: 26
Joined: 30 Dec 2014 15:35

Re: Quick way to use file permissions ?

Post by flourgrader »

Thank you highend.
I will take a look at your Link.

autocart
Posts: 1246
Joined: 26 Sep 2013 15:22

Re: Quick way to use file permissions ?

Post by autocart »

Depending on your exact needs, you might also want to search for AccessControl, here and in the XY help.

flourgrader
Posts: 26
Joined: 30 Dec 2014 15:35

Re: Quick way to use file permissions ?

Post by flourgrader »

Thank you

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Quick way to use file permissions ?

Post 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
One of my scripts helped you out? Please donate via Paypal

autocart
Posts: 1246
Joined: 26 Sep 2013 15:22

Re: Quick way to use file permissions ?

Post 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.

flourgrader
Posts: 26
Joined: 30 Dec 2014 15:35

Re: Quick way to use file permissions ?

Post 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.

Post Reply