摘要: 1 string rXml = string.Empty; 2 HttpWebRequest myHttpWebRequest = System.Net.WebRequest.Create(url) as HttpWebRequest; 3 myHttpWebRequest.KeepAlive = false; 4 myHttpWebRequest.AllowAutoRedirect = false; 5 myHttpWebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 6.... 阅读全文
posted @ 2013-05-06 16:22 酣睡的熊㊣ 阅读(1555) 评论(0) 推荐(0)
摘要: 1 Application.StartupPath; //获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称。 2 3 Environment.CurrentDirectory; //获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。 4 5 Application.ExecutablePath; //获取启动了应用程序的可执行文件的路径,包括可执行文件的名称 6 7 System.IO.Directory.GetCurrentDirectory() //获取应用程序的当前工作目录。 8 9 System.IO.Directory.GetCurrentDire... 阅读全文
posted @ 2013-05-06 13:00 酣睡的熊㊣ 阅读(292) 评论(0) 推荐(0)
摘要: 1 using System.Collections.Generic; 2 using System.ComponentModel; 3 using System.Data; 4 using System.Drawing; 5 using System.Text; 6 using System.Windows.Forms; 7 namespace WindowsApplication1 { 8 publicpartialclass SelectFolder: Form { 9 public SelectFolder() 10 {11 InitializeComponent();12 }13 . 阅读全文
posted @ 2013-05-06 12:59 酣睡的熊㊣ 阅读(428) 评论(0) 推荐(0)