博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Windows Vista中禁用删除回收站
阅读量:2516 次
发布时间:2019-05-11

本文共 2721 字,大约阅读时间需要 9 分钟。

One of the changes in Windows Vista was the easy way to remove the Recycle Bin from the desktop (simply right-click and delete)… unfortunately this sparked a new problem where unwitting users started instead of Emptying it and were unable to .

Windows Vista中的一项更改是从桌面删除回收站的简单方法(只需单击鼠标右键并删除)...不幸的是,这引发了一个新问题,即不知情的用户开始而不是清空,并且无法。

This has become such a big problem that I’ve received dozens of emails asking how to prevent deletion of the recycle bin. In fact, one reader was so angry with me because he couldn’t stop himself from repeatedly deleting the Recycle Bin that he ended up calling me a bunch of names (which I found somewhat humorous).

这已经成为一个很大的问题,以至于我收到了数十封电子邮件,询问如何防止删除回收站。 实际上,一个读者对我非常生气,因为他无法阻止自己重复删除回收站,以至于他给我起了一堆名字(我觉得有些幽默)。

What we’ll do is disable this menu item using a small registry hack. The item will still show up, it just won’t work anymore.

我们要做的是使用一个小的注册表黑客来禁用此菜单项。 该项目仍将显示,但将不再起作用。

image[11]

Unfortunately the user can still click on the icon and use the Delete button on the keyboard, but we can’t do anything about that.

不幸的是,用户仍然可以单击该图标并使用键盘上的“删除”按钮,但是我们对此无能为力。

Manual Registry Hack to Disable Delete Item

手动注册表黑客禁用删除项目

Open up regedit.exe through the start menu search or run box, and then browse down to the following key (might be easiest to search for it)

通过开始菜单搜索或运行框打开regedit.exe,然后向下浏览至以下键(可能最容易搜索)

HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}

HKEY_CLASSES_ROOT \ CLSID \ {645FF040-5081-101B-9F08-00AA002F954E}

image[5]

You’ll want to first create a new key called “Shell” on the left hand side, then a key named “Delete” under that, and then another key named “command”. Set the default value of the Delete key to “Delete”, and then set the default value of command to “rundll32.exe”.

您首先要在左侧创建一个名为“ Shell”的新键,然后在其下创建一个名为“ Delete”的键,然后再创建一个名为“ command”的键。 将Delete键的默认值设置为“ Delete”,然后将命令的默认值设置为“ rundll32.exe”。

What we’re doing here is creating a new function called Delete that replaces the current command on the menu. By setting it to run rundll32.exe, we’re eliminating any error message by running a valid process (that will immediately exit and the user will never see it).

我们在这里所做的是创建一个名为Delete的新功能,该功能将替换菜单上的当前命令。 通过将其设置为运行rundll32.exe,我们通过运行有效的进程来消除任何错误消息(该进程将立即退出并且用户将永远不会看到它)。

image[8]

The only visible change you’ll notice is that the Delete menu item will move above the Empty Recycle Bin item.

您会注意到的唯一可见变化是,“删除”菜单项将移至“清空回收站”项上方。

Downloadable Registry Tweak

可下载的注册表调整

Simply download, extract, and double-click on DisableRecycleBinDelete.reg to enter the information into the registry. There’s also an included EnableRecycleBinDelete.reg file that will set it back to normal.

只需下载,提取并双击DisableRecycleBinDelete.reg,即可将信息输入注册表。 还有一个随附的EnableRecycleBinDelete.reg文件,会将其设置回正常状态。

翻译自:

转载地址:http://hzawd.baihongyu.com/

你可能感兴趣的文章
Entity Framework 4.3.1 级联删除
查看>>
codevs 1163:访问艺术馆
查看>>
冲刺Noip2017模拟赛3 解题报告——五十岚芒果酱
查看>>
并查集
查看>>
sessionStorage
查看>>
代码示例_进程
查看>>
Java中关键词之this,super的使用
查看>>
学习进度
查看>>
“此人不存在”
查看>>
github.com加速节点
查看>>
解密zend-PHP凤凰源码程序
查看>>
python3 序列分片记录
查看>>
Atitit.git的存储结构and 追踪
查看>>
atitit 读书与获取知识资料的attilax的总结.docx
查看>>
B站 React教程笔记day2(3)React-Redux
查看>>
找了一个api管理工具
查看>>
Part 2 - Fundamentals(4-10)
查看>>
使用Postmark测试后端存储性能
查看>>
NSTextView 文字链接的定制化
查看>>
第五天站立会议内容
查看>>