如何使单击文件时出现批处理文件?
有没有办法在右键或左键单击文件时执行批处理文件?我想制作一个密码批处理文件,它将提示用户输入密码才能打开或编辑该特定文件。如果该人弄错了,那么他将无法编辑或打开该文件。
Is there a way to execute a batch file when you right or left click a file? I want to make a password batch file that will prompt the user for a password in order to open or edit that specific file. If the person gets it wrong then he can't edit nor open the file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
反过来说,是的。该脚本将创建一个私人文件夹供您存储文档,并在允许访问之前提示输入密码。
请参阅此链接和此链接了解更多信息。
In a round about way, yes. This script will create a private folder for you to store documents in and will prompt for a password before allowing access to it.
See this link and this link for more info.
为什么不使用像GPG这样的真正的加密呢?就像真正的保安人员。
你的想法,即使它是可能的(我不相信它是)也是微不足道的,只需在它打开的任何应用程序中直接打开该文件即可。
实际上,比这更糟糕的是,您的建议会泄露密码,因为它必须位于 bat 文件中的某个位置。
Why not use real encryption like GPG? It's like, actual security man.
Your idea, even if it were possible (and I don't believe it be) is trivially defeatable, just open the file directly in whatever app it opens with.
Actually, it's worse than that, your suggestion would REVEAL the password, because it would have to be in the bat file somewhere.