如何在特定文件夹中禁用鼠标单击 [英] How we can disable mouse click inside particular folder
本文介绍了如何在特定文件夹中禁用鼠标单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个名为A的文件夹。我只是想让用户无法鼠标点击此文件夹。当用户双击文件夹A意味着
时,任何事情都应该发生。 (它不应该打开该文件夹)。
当用户右键单击此文件夹时,不应打开上下文菜单。
等
我尝试了什么:
我尝试更改注册表项,但它适用于我不想要的系统级别。
I have an folder named A. I just wanted a user can not be able to mouse click on this folder. It means
when user double click on folder A nothing should happen. (it should not open that folder).
When user right click on this folder no context menu should open.
etc.
What I have tried:
I tried changing registry entry but it applies at system level which i do not want.
推荐答案
什么阻止我使用cmd或第三方文件浏览器访问该文件夹并按我的意愿行事?试图通过操纵GUI来防止访问事物永远不是正确的解决方案,它总是留下变通方法。如果要限制对文件夹的访问,请使用身份验证正确执行。
What stops me using cmd or a third party file explorer to access the folder and do what I want? Trying to prevent access to things by manipulating the GUI is never the right solution and it always leaves workarounds. If you want to restrict access to a folder do it properly using authentication.
这篇关于如何在特定文件夹中禁用鼠标单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文