摘要: 给你一个我自己收集整理的类:例:C# code?12345678910111213usingSystem.Security.AccessControl; stringstrPath="d:\temp"; if(!Directory.Exists(strPath)) { Directory.CreateDirectory(strPath); } //重新设置目录访问权限 NTFSHelper.RemoveDirectoryAccountSecurityAll(strPath); NTFSHelper.AddDirectorySecurity(strPath,"SYS 阅读全文
posted @ 2013-05-23 20:53 cyes 阅读(348) 评论(0) 推荐(0)
摘要: http://www.connectionstrings.com/ 阅读全文
posted @ 2013-04-20 23:36 cyes 阅读(110) 评论(0) 推荐(0)
摘要: 1 public static string GetMD5(string str) 2 { 3 using (MD5 md5 = MD5.Create()) 4 { 5 byte[] data = md5.ComputeHash(Encoding.Default.GetBytes(str)); 6 StringBuilder sb = new StringBuilder(); 7 foreach (byte b in ... 阅读全文
posted @ 2013-04-19 23:48 cyes 阅读(249) 评论(0) 推荐(0)