Hi,
(Sorry my English).
I would like a system of protection of directories and files via popup menu (or other way).
Options such like:
1. Do not allow changes to the file(s) in the folder;
2. Do not allow changes to the folder;
3. Do not allow deletion of file(s) in the folder;
4. Do not allow deletion of the folder;
5. Hide the file(s) in the folder;
6. Hide all files in the folder;
7. Hide the folder.
And, of course, reverse the choice (s).
Thanks.
File/Folder protection
-
highend
- Posts: 14953
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: File/Folder protection
You could already do that (yourself).
Either by registering context menu entries or using
Configuration | General | Custom Event Actions | Clicking on Items | Middle-click on folder and run a script from it
This is just an example entry!
Group names are language dependent!
You should take the time and learn enough about the dos commands attrib & icacls to know how to remove groups, set explicit rights to your user name / groups, hide or set read-only attributes with them...
Either by registering context menu entries or using
Configuration | General | Custom Event Actions | Clicking on Items | Middle-click on folder and run a script from it
This is just an example entry!
Code: Select all
REG ADD "HKLM\SOFTWARE\Classes\Directory\shell\takeownership" /t REG_SZ /d "%ContextMenu_TakeOwnership% [%USERNAME%]" /ve /f
REG ADD "HKLM\SOFTWARE\Classes\Directory\shell\takeownership" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
REG ADD "HKLM\SOFTWARE\Classes\Directory\shell\takeownership\command" /t REG_SZ /d "cmd.exe /k takeown /f \"%%1\" /r /d Y && icacls \"%%1\" /grant Administrators:F /t" /ve /f
REG ADD "HKLM\SOFTWARE\Classes\Directory\shell\takeownership\command" /v "IsolatedCommand" /t REG_SZ /d "cmd.exe /k takeown /f \"%%1\" /r /d Y && icacls \"%%1\" /grant Administrators:F /t" /f
You should take the time and learn enough about the dos commands attrib & icacls to know how to remove groups, set explicit rights to your user name / groups, hide or set read-only attributes with them...
One of my scripts helped you out? Please donate via Paypal
-
Nelson Carvalho
- Posts: 19
- Joined: 16 Nov 2010 13:47
Re: File/Folder protection
Thanks for the quick response.
I use part of the XYplorer resources, as needed.
There are many resources that can be obtained via script, which is very good.
However, my focus when using Xyplorer is not necessarily to study and develop scripts. I imagine that this proposal is the same for other users.
For this reason I made this suggestion. I would like (suggestion) that this option be added to the software without I having to study and write scripts.
Xyplorer has numerous features that could be performed via scripts developed by the user. However, the software already offers these features in a much easier way.
I'm a fan of Xyplorer, because I consider the best software in the area. If it is possible and if you are interested in a future version to add this feature, I thank you in advance.
Cheers.
I use part of the XYplorer resources, as needed.
There are many resources that can be obtained via script, which is very good.
However, my focus when using Xyplorer is not necessarily to study and develop scripts. I imagine that this proposal is the same for other users.
For this reason I made this suggestion. I would like (suggestion) that this option be added to the software without I having to study and write scripts.
Xyplorer has numerous features that could be performed via scripts developed by the user. However, the software already offers these features in a much easier way.
I'm a fan of Xyplorer, because I consider the best software in the area. If it is possible and if you are interested in a future version to add this feature, I thank you in advance.
Cheers.
-
highend
- Posts: 14953
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: File/Folder protection
I just wanted to say: The chances that Don opens this can of worms (dealing with calcs/icacls/attrib and the like + reversibility of any changes of them) and adding 14 context menu entries is... most probably: 0
Just my 2 cents
Just my 2 cents
One of my scripts helped you out? Please donate via Paypal
-
Nelson Carvalho
- Posts: 19
- Joined: 16 Nov 2010 13:47
Re: File/Folder protection
ok.
Maybe opening a small window with options for the file / folder.
Best regards
Maybe opening a small window with options for the file / folder.
Best regards
XYplorer Beta Club