小工具:命令行设置注册表、文件系统的读写权限

前几天在做序列号验证时需要对注册表的读写访问权限,用.net 来实现设置注册表的、文件系统的读写权限,非常麻烦,我试了很多次都不成功,最后找到一个命令行的小工具,在程序里面调用该工具,传入相应的命令参数,问题解决。

SetACL is a set of routines for managing Windows permissions (ACLs) from the command line, from scripts and from programs. These routines can be used from various container or interface programs. Currently there exist a command line version to be used in batch files or scripts and an ActiveX control (SetACL.ocx) which can be used from any COM-enabled language (VB, WSH scripts, ...).

这是一个开源的小工具,官方地址http://setacl.sourceforge.net/

/Files/jintan/SetACL.rar

posted @ 2009-10-19 11:20  代码乱了  阅读(1053)  评论(0编辑  收藏  举报