使文件不可访问和不可删除 [英] Make file Inaccessible and Undeletable
本文介绍了使文件不可访问和不可删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使:: ::文件夹不可访问和不可删除的代码
tHanX
hi ,
i need code of make the :: Make Folder Inaccessible and Undeletable
tHanX
推荐答案
那是毫无意义的.如果无法访问,那有什么好处?您可以基于每个用户(或组)限制权限,但这仅在只有系统管理员可以访问它的系统上有效,并且当前登录的用户不是该管理员.
That''s kinda pointless. If it''s not accessible, what good is it? You can restrict permissions ona user-by-user (or group) basis, but this will only work on a system where only the system administrator can access it, and the current logged in user is NOT that administrator.
看看此链接 Directory.SetAccessControl
这篇关于使文件不可访问和不可删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文