无论您使用计算机的目的是什么,您的计算机上都可能存在一些您不希望任何人重命名或删除的文件。但不幸的是,Windows的工作方式实际上并没有默认机制来帮助您防止文件(prevent your files from being deleted)在您的计算机上被删除。任何(Any)有权访问您计算机的用户都可以找到您的文件并修改、重命名,甚至从您的计算机上删除它们。
保护这些重要文件本身就是一项任务。尽管默认情况下Windows不会保护您的文件,但它确实提供了一个选项来帮助保护您的文件免遭任何删除尝试。事实上,有多种内置方法和第三方方法可以帮助防止您的文件在您的计算机上被修改。
使用默认选项防止文件被删除(Prevent Files From Being Deleted Using The Default Option)
在Windows(Windows)中防止文件重命名和删除的最佳方法是使用系统上可用的默认选项。它不需要安装,即使是初学者也可以轻松访问和使用。
- 在文件资源管理器(File Explorer)中找到要防止被删除的文件。右键单击(Right-click)该文件并选择“属性(Properties)”选项。
- 当属性对话框打开时,您会在顶部看到四个选项卡。单击显示(Click)安全(Security)性的选项卡,因为您要查找的选项位于此处。
- 在“安全(Security)”选项卡中,您会在底部找到一个“高级(Advanced)”按钮。单击(Click)它,它将打开一个新对话框。
- 以下屏幕允许您定义所选文件的权限。单击(Click)禁用继承(Disable inheritance)按钮可以修改文件权限。
- 将出现一个提示,其中包含两个选项。选择将继承的权限转换为此对象的显式权限的选项(Convert inherited permissions into explicit permissions on this object)。
- 您现在将在屏幕上看到所有用户帐户。单击(Click)要防止删除文件的帐户,然后单击“编辑(Edit)”按钮。它可以让您编辑所选帐户的文件权限。
- 确保单击以下屏幕上的显示高级权限,以便您可以查看所有可用权限。(Show advanced permissions)此外,从类型(Type)下拉菜单中选择拒绝。(Deny)然后,勾选以下选项,这些权限将从您选择的用户帐户中删除。A) 读取权限(A) Read permissionsB) Change permissionsC) Take ownershipD) Delete)B) 更改权限C) 取得所有权D) 删除完成后单击确定(OK)以保存更改
- 在以下屏幕上也单击“确定(OK)”,然后退出计算机上所有打开的对话框。
您选择的文件现在受到保护,不会在您的 PC 上被修改、重命名或删除。如果您拒绝访问的用户尝试删除该文件,他们将收到权限错误,并且他们将无法继续执行该任务。
通过隐藏文件防止文件被重命名和删除(Prevent Files From Being Renamed And Deleted By Hiding Files)
防止文件被删除或重命名的另一种方法是隐藏文件(hide your files)。这样您的文件就不会出现在文件资源管理器(File Explorer)中,任何其他用户都不会看到它,更不用说删除您机器上的文件了。
隐藏您的文件以防止它们被删除(Hiding Your Files To Prevent Them From Being Deleted)
- 右键单击您的文件并选择Properties。
- 默认情况下,您将位于“常规”选项卡中。(General)在屏幕底部,您会找到一个选项Hidden。勾选该选项并单击OK。
您的文件现在应该被隐藏。
如果您可以选择查看计算机上启用的隐藏文件,则需要将其关闭,否则您的文件将变得可见。
禁用在 Windows 中查看隐藏文件(Disable Viewing Hidden Files In Windows)
- 在 PC 上打开文件资源管理器(File Explorer)窗口。
- 单击顶部的查看菜单,您将显示几个新选项。(View)找到显示选项的选项(Options),单击它,然后选择更改文件夹和搜索选项(Change folder and search options)。
- 在屏幕上打开的对话框中单击查看选项卡。(View)找到名为“不显示隐藏文件、文件夹或驱动器(Don’t show hidden files, folders, or drives)”的条目并启用它。单击确定(OK)以保存更改。
您的隐藏文件现在应该完全隐藏,并且在启用上述选项之前它不会在资源管理器中可见。(Explorer)
使用防止删除文件删除和重命名选项(Use Prevent To Remove The File Delete And Rename Options)
用户之所以能够删除或重命名您的文件,是因为他们可以在(rename your files)文件资源管理器(File Explorer)中选择这样做。如果您可以以某种方式禁用资源管理器(Explorer)菜单中不需要的选项,从而使用户甚至无法启动任何不需要的操作,该怎么办?
好吧,有一个应用程序可以让你做到这一点。
Meet Prevent是一个小型应用程序,可让您在计算机上的文件资源管理器中禁用某些选项。(File Explorer)它使您可以禁用重命名(Rename)、删除(Delete)、剪切(Cut)和复制(Copy)等选项,这样任何人都无法触摸或修改您选择的文件。
在您的计算机上下载和使用此应用程序是完全免费的。此外,它只占用您机器上的少量内存空间。
- 在您的 Windows PC 上下载、安装和启动阻止应用程序。(Prevent)
- 当应用程序启动时,您会看到您只能配置一个选项。
它被称为定义热键(Define Hotkey),它允许您指定停止应用程序运行的键盘快捷键。使用(Use)任何可用的键盘快捷键,然后单击激活(Activate)。
- 该应用程序将开始运行,当您右键单击文件时,您会发现上述选项显示为灰色。您不能单击或使用它们。该应用程序也会禁用这些操作的物理按钮。
当您决定允许使用这些选项时,只需按下您分配给应用程序的键盘快捷键,应用程序就会停止运行。然后,您可以像以前一样重命名、删除、剪切和复制文件。
Prevent Files From Being Deleted Or Renamed In Windows
No matter what pυrpose you use your computer for, there are likely some files on your machіne that you don’t want anyonе to rename or dеlete. But unfortunately the way Windows works, there’s reallу no default mechanism to help you prevent your files from being deleted on your computer. Any user who has access to your machine can find your files and modify, rename, and even delete them off your computer.
Safeguarding these important files is a task in itself. Although Windows doesn’t protect your files by default, it does offer an option that helps protect your files from any deletion attempts. In fact, there are multiple ways both in-built as well as third-party ones that help keep your files from getting modified on your computer.
Prevent Files From Being Deleted Using The Default Option
The best way to prevent file renaming and deletion in Windows is to use the default option available on your system. It requires no installation and can easily be accessed and used even by beginners.
- Locate the file that you want to prevent from being deleted in File Explorer. Right-click on the file and select the option that says Properties.
- When the properties dialog box opens, you’ll see four tabs at the top. Click on the tab that says Security as the option you’re looking for is located there.
- In the Security tab, you’ll find a button saying Advanced at the bottom. Click on it and it’ll open a new dialog box.
- The following screen lets you define permissions for your selected file. Click on the Disable inheritance button to be able to modify the file permissions.
- A prompt will appear with two options in it. Select the one that says Convert inherited permissions into explicit permissions on this object.
- 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.
- Make sure to click on Show advanced permissions on the following screen so you can see all the available permissions. Also, select Deny from the Type dropdown menu.
Then, tick-mark the following options and these permission privileges will be taken away from your selected user account.
A) Read permissions
B) Change permissions
C) Take ownership
D) Delete
Click on OK when you’re done to save the changes
- Click on OK on the following screen as well and then exit all the open dialog boxes on your computer.
Your selected file is now protected from being modified, renamed, or deleted on your PC. If the user you’ve denied access tries to delete the file, they’ll get a permission error and they won’t be able to proceed with the task.
Prevent Files From Being Renamed And Deleted By Hiding Files
Another way you can prevent your files from being deleted or renamed is to hide your files. This way your files won’t appear in File Explorer and any other user won’t see it let alone deleting the file on your machine.
Hiding Your Files To Prevent Them From Being Deleted
- Right-click on your file and select Properties.
- You’ll be in the General tab by default. At the bottom of your screen, you’ll find an option saying Hidden. Tick-mark the option and click on OK.
Your file should now be hidden.
If you have the option to view hidden files enabled on your machine, you’ll need to turn it off or your file will become visible.
Disable Viewing Hidden Files In Windows
- Open a File Explorer window on your PC.
- Click on the View menu at the top and you’ll reveal several new options. Find the option that says Options, click on it, and select Change folder and search options.
- Click on the View tab in the dialog box that opens on your screen. Find the entry named Don’t show hidden files, folders, or drives and enable it. Click on OK to save the changes.
Your hidden file should now be completely hidden and it won’t be visible in the Explorer until the above option is enabled.
Use Prevent To Remove The File Delete And Rename Options
A user is able to delete or rename your files only because they get the option to do so in File Explorer. What if you could somehow disable the options that you don’t want in the Explorer menu so a user can’t even initiate any unwanted actions?
Well, there’s an app that lets you do it.
Meet Prevent, a small application that allows you to disable certain options in File Explorer on your computer. It lets you disable options like Rename, Delete, Cut, and Copy so no one can touch or modify your chosen files.
It’s completely free to download and use this app on your computer. Also, it only occupies a small amount of memory space on your machine.
- Download, install, and launch the Prevent app on your Windows PC.
- When the app launches, you’ll see that there’s only one option you can configure.
It’s called Define Hotkey and it allows you to specify a keyboard shortcut that stops the app from running. Use any of the available keyboard shortcuts and then click on Activate.
- The app will start running, and when you right-click on your file, you’ll find that the options mentioned above are grayed out. You can’t click or use them. The app disables the physical buttons for those actions as well.
When you decide that it’s time to allow those options to be used, simply press the keyboard shortcut you assigned to the app and the app will stop functioning. You can then rename, delete, cut, and copy your file as you could do before.