摘要:
/// <summary> /// 获取IIS版本 /// </summary> /// <returns></returns> public static int GetIISVersion() { DirectoryEntry getEntry = new DirectoryEntry("IIS://localhost/W3SVC/INFO"); int num = 5; try { num... 阅读全文
posted @ 2013-04-11 14:54
赵 磊
阅读(325)
评论(0)
推荐(0)
摘要:
对文件夹设置为Everyone的权限,首先需要先添加引用using System.Security.AccessControl;采用下面的方法对文件夹设置Everyone权限 /// <summary> /// 设置文件夹权限,处理为Everyone所有权限 /// </summary> /// <param name="foldPath">文件夹路径</param> public static void SetFileRole(string foldPath) { DirectorySe... 阅读全文
posted @ 2013-04-11 14:45
赵 磊
阅读(505)
评论(0)
推荐(1)

浙公网安备 33010602011771号