摘要: 1 /// <summary> 2 /// 写进注册表,以便开机启动 3 /// </summary> 4 private void SetAutoStar() 5 { 6 try 7 { 8 string filepath = Assembly.GetExecutingAssembly().Location; 9 string runName = Path.GetFileNameWithoutExtension(... 阅读全文
posted @ 2012-05-02 16:04 _Mr.L 阅读(432) 评论(0) 推荐(1)
摘要: //创建文件夹Directory.CreateDirectory(Server.MapPath("a"));Directory.CreateDirectory(Server.MapPath("b"));Directory.CreateDirectory(Server.MapPath("c"));//移动b到aDirectory.Move(Server.MapPath("b"), Server.MapPath("a\\b"));//删除cDirectory.Delete(Server.MapPat 阅读全文
posted @ 2012-05-02 14:57 _Mr.L 阅读(5790) 评论(2) 推荐(2)
摘要: XML读取到DataTable 1 public DataTable ReadIP() 2 { 3 DataTable dt = new DataTable(); 4 XmlDocument xmlDoc = new XmlDocument(); 5 string fullPath = Application.StartupPath; string path = fullPath.Substring(0, fullPath.Length - 9) + @"Data\IPAndWebAdress... 阅读全文
posted @ 2012-05-02 14:52 _Mr.L 阅读(246) 评论(0) 推荐(0)