访问控制条目文件夹或文件上的Cacls [英] Access Control Entries Cacls on a folder or file

查看:94
本文介绍了访问控制条目文件夹或文件上的Cacls的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何使用VB.Net在文件夹上设置访问控制。使用命令提示符我可以使用此语法[cacls folderName / e / c / d%username%]来完成。即使是管理员,此文件夹仍然无法访问,无法删除,重命名,打开或剪切。但是它可以从其他位置复制和打开。



我想在VB 2010中这样做。如果可能的话,我想让文件夹/文件无法复制。任何想法?

Does anybody know how to set Access Controls on a folder using VB.Net. With Command prompt i can do it using this syntax [cacls folderName /e /c /d %username%]. This folder remains inaccessible even by the Administrator, It cannot be deleted, renamed,opened or cut. However it can be copied and opened from another location.

I wanna do that in VB 2010. If possible I would like to make the folder/file impossible to copy. Any Ideas?

推荐答案

这篇关于访问控制条目文件夹或文件上的Cacls的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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