开发者

Giving write permission to Users group in Vista?

开发者 https://www.devze.com 2023-01-03 16:24 出处:网络
IS there any API that can give \'User开发者_StackOverflows\' write permission to a file in Vista?You would want to modify the ACL of the file.For example see related Win32 APIs to: SetNamedSecurityInf

IS there any API that can give 'User开发者_StackOverflows' write permission to a file in Vista?


You would want to modify the ACL of the file. For example see related Win32 APIs to: SetNamedSecurityInfo.

If all of that seems a little frightening to you, you can consider simply running a process that calls: cacls

For example giving a directory everyone permission:

cacls "directoryPathHere" /e /t /g Everyone:f

For more information on the command line parameters type in a command prompt:

cacls /?
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号