如何从Windows文件资源管理器中隐藏特定的网络文件夹 [英] How to hide a specific network folder from the windows file explorer

查看:427
本文介绍了如何从Windows文件资源管理器中隐藏特定的网络文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发人员,



我需要从Windows文件资源管理器中隐藏一个特定的网络文件夹,当用户出现禁止文件夹消息时键入/复制/粘贴提到的Windows文件资源管理器的文件夹路径,同时我的dotnet应用程序能够ShellExecute / Process.Run驻留在同一文件夹中的文件。此外,从网络根文件夹中搜索Windows文件资源管理器也应该跳过此指定的文件夹!



显然用户需要对上述文件夹的文件访问权限一般 - 但我想让他只能从我的dotnet应用程序中访问文件(到某些文件,但不是全部)。



有没有人解决过你们通过程序扩展限制Windows文件资源管理器的挑战?或者想知道从哪里开始?



提前很多,

干杯,Rob



我尝试了什么:



我遇到的问题:Windows Shell Extensions可能是一个起点?

Fellow developers,

I need to hide a specific network folder from the Windows File Explorer that way, that an user is presented a "Forbidden Folder" message when typing/copy/pasting the mentioned folder path to the Windows File Explorer, while at the same time my dotnet-application is able to ShellExecute/Process.Run a file residing in the very same folder. Furthermore, a search out of the Windows File Explorer from the network root folder should also skip this specified folder!

Obviously the user needs file access permissions on the mentioned folder in general - but I want to allow him to access files only from within my dotnet-application (to some files, but not all).

Has anyone of you ever solved the challenge to restrict the Windows File Explorer by a program extension? Or an idea where to start from?

Thx a lot in advance,
Cheers, Rob

What I have tried:

What I came across: might Windows Shell Extensions be a starting point?

推荐答案

如果是我,我会单独保留文件夹/文件访问权限,并加密所有相关文件(或至少不是每个人都可以读取的文件)然后,根据谁登录,允许应用程序解密相应的文件。这将减少拥有管理员权限来设置权限的必要性。
If it were me, I would leave folder/file access alone, and encrypt all of the files in question (or at least the ones that not everyone can read), and then, based on who logs on, allow the decryption of the appropriate files by the app. This would mitigate the necessity to have admin rights to set permissions.


这篇关于如何从Windows文件资源管理器中隐藏特定的网络文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆