开发者

Can anyone help me with setting folder permissions in IIS via an asp page?

I can create the folder, but I need to set the execute permissions to none/false for the folder named files. I have tried several examples on the net and none work correctly. Doing this manually in IIS is not an option, it must be done dynamically when the folder is created.

Here is what I use to create the folders:

set fso = Server.CreateObject("Scripting.FileSystemObject") set folder3 = fso.CreateFolder(Server.MapPath(user_name & "/fi开发者_如何学运维les"))

I found one example using an IIS Admin object, but it was a little over my head. I have full permission to make the directory change, just can't get the code right. Any help would be greatly appreciated.


You could use PowerShell script depending on OS your're using

http://www.powershell.nu/2009/02/13/set-folder-permissions-using-a-powershell-script/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜