Windows 10: How to prevent deletion of files in directory?

Discus and support How to prevent deletion of files in directory? in AntiVirus, Firewalls and System Security to solve the problem; Using Windows Version 2004 (OS Build 19041.804) I followed these steps but without success: 1. At the root of a non-system drive create a folder... Discussion in 'AntiVirus, Firewalls and System Security' started by AndreiMarian, Mar 5, 2021.

  1. How to prevent deletion of files in directory?


    Using Windows Version 2004 (OS Build 19041.804)

    I followed these steps but without success:
    1. At the root of a non-system drive create a folder "folder".
    2. Inside create a file "file.txt".
    3. For folder add permission rule: everyone / deny / delete subfolders and files:

    How to prevent deletion of files in directory? [​IMG]

    4. Pressing OK brings this warning:

    How to prevent deletion of files in directory? [​IMG]

    5. For "file.txt" check effective access for current user -- it can delete:

    How to prevent deletion of files in directory? [​IMG]

    Same happens if, just like with everyone, denial rules in "folder" security are further added for authenticated users and system.
    Moreover, if the file owner is changed (to another user, happens to be admin) the current user (not admin) can delete the file. And this is of course reflected in effective access. Finally, trying the most restrictive measure -- adding the denial rule for the current user, regardless of the file owner, current user can still delete the file.
    What am I missing? Does the system need restart?
    What are the conditions for the contents of a folder to be protected from deletion and with respect to which accounts? Which accounts can / cannot delete in which circumstances?

    :)
     
    AndreiMarian, Mar 5, 2021
    #1
  2. Drone Win User

    Directory Size Utility

    First of all nice utility, Mindweaver!
    Second of all, it's so nice to see that this section ain't dead.

    I have a few questions/suggestions, maybe you'd want to see ...
    • maybe you rename Get Folder button caption to something more intuitive? Add Folder, Get Folder Size, Check Folder Size or something like that?
    • Could you add subfolder files to the right pane? (it can be a tickbox with include sub dirs)
    • maybe you also add export list to excel?
    • there's delete file button maybe you add delete folder button too?
    • and finally maybe you can add UP button for directories?
     
    Drone, Mar 5, 2021
    #2
  3. Directory Size Utility

    Thanks buddy! Yea, this section's not dead. Kreij and I have big plans for this section. I don't want to give nothing away, but we have some bigger projects down the road. *Toast :toast: I feel I'm pretty good at coding with different languages, but I'm well behind Kreij's level of experience with those other Languages. I've been working on those other languages, and soon I'll feel comfortable enough to start, and not feel like I'm holding the project back. *Toast :toast:

    Now on to your suggestions.

    • maybe you rename Get Folder button caption to something more intuitive? Add Folder, Get Folder Size, Check Folder Size or something like that? Yea, that's been bothering me and I like your suggestion "Add Folder". I'll change it on the next release.
    • Could you add subfolder files to the right pane? (it can be a tickbox with include sub dirs) I could add this, but let me see if I understand what you're asking. By subfolders you mean add all the folders in the left panel to the right panel? Those folders are all the subfolders in the "Get folder".
    • maybe you also add export list to excel? I'll add this on the next release.
    • there's delete file button maybe you add delete folder button too? I'll add this on the next release.
    • and finally maybe you can add UP button for directories? I'll add this on the next release.
    These are all great suggestions! Thanks Drone! *Toast :toast:
     
    Mindweaver, Mar 5, 2021
    #3
  4. How to prevent deletion of files in directory?

    Directory Size Utility

    New! Directory Size Utility BETA v1.2


    Change Log v1.2
    • Resolved an issue were the "Delete file", "Sort by Size", and "Export file" buttons would run into the "About" button and cause the "Directory Size Utility" to crash.
    • New right click menu("Get folder...", "Open folder") for folder list.
    • New right click menu("Launch file", "Delete file") for file list.
    • Aligned total folder size at the bottom to center the program.
    • Double clicking the file in file list will now launch the file.
    Download here!
     
    Mindweaver, Mar 5, 2021
    #4
Thema:

How to prevent deletion of files in directory?

Loading...
  1. How to prevent deletion of files in directory? - Similar Threads - prevent deletion files

  2. How to prevent a deleted file from re-appearing ?

    in Windows 10 Network and Sharing
    How to prevent a deleted file from re-appearing ?: In a puzzlingly erratic way, a downloaded file that I have repeatedly deleted, keeps re-appearing in a folder. What can be going on, and how can it be prevented ?...
  3. How to prevent a deleted file from re-appearing ?

    in Windows 10 Gaming
    How to prevent a deleted file from re-appearing ?: In a puzzlingly erratic way, a downloaded file that I have repeatedly deleted, keeps re-appearing in a folder. What can be going on, and how can it be prevented ?...
  4. How to prevent a deleted file from re-appearing ?

    in Windows 10 Software and Apps
    How to prevent a deleted file from re-appearing ?: In a puzzlingly erratic way, a downloaded file that I have repeatedly deleted, keeps re-appearing in a folder. What can be going on, and how can it be prevented ?...
  5. Deleting empty directories and 0 byte files

    in Windows 10 Support
    Deleting empty directories and 0 byte files: Is it save and should I delete empty directories and 0 byte files just to clean things up? If it is a good idea is there a tool to find them? 179888
  6. Move or rename of a directory on USB drive deletes all files/directories in it.

    in Windows 10 Network and Sharing
    Move or rename of a directory on USB drive deletes all files/directories in it.: Window 10 home on a Lenovo IdeaPad: I have a new 2Tbyte USB FLASH drive. On using it as a backup I get Error 80070570 errors. To debug I copied one of the files that had the error to a different directory with no problem. I deleted the original/error directory and renamed...
  7. Prevent specific app for accessing specific file / directory

    in Windows 10 Ask Insider
    Prevent specific app for accessing specific file / directory: Is it possible to prevent specific app for accessing specific file / directory? On privacy setting it only has option for accessing file system. And on Apps & features setting, not all apps has advanced option button.. What I want to do is something like "prevent foobar.exe...
  8. Deleting Directory

    in AntiVirus, Firewalls and System Security
    Deleting Directory: I am logged in as an Administrator and I cannot delete a directory- I don't have permission. I checked in to properties and it says Administrators have Full Access. It also shows Trusted Installers have Full access - who is that???? How do I uninstall a directory ? Thanks...
  9. How to prevent account deletion?

    in User Accounts and Family Safety
    How to prevent account deletion?: I am having an administrative user account with a password on a computer in the computer lab. And there is another admininstrative account for public use without a password which all other students use. Yesterday when I opened the computer I found my account deleted. It was...
  10. Cant delete as "The file or directory is corrupted and unreadable"

    in Windows 10 Support
    Cant delete as "The file or directory is corrupted and unreadable": Hi Have a folder with some subfolders that just wont delete. Can move and rename. Cannot cut and paste to another drive. I have tried the following which results in the same, just doesnt delete. Takeownership Grant me admin CMD Prompt running with admin del...