挽星

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

01 2011 档案

摘要:Classic ASP Parent Paths let developers use relative addresses that contain ".." in the paths to files or folders. For example, the following code excerpt illustrates an ASP page that maps a parent path:% Response.Write Server.MapPath("../example.asp")%In addition, the following code except illust 阅读全文
posted @ 2011-01-09 04:31 挽星

摘要:要在c#中获取路径有好多方法,一般常用的有以下五种: //获取应用程序的当前工作目录。 String path1 = System.IO.Directory.GetCurrentDirectory(); MessageBox.Show("获取应用程序的当前工作目录:" + path1); //获取程序的基目录。 String path2 = System.AppDomain.CurrentDomain.BaseDirectory; MessageBox.Show("获取程序的基目录:" + path2); //获取和设置包括该应用程序的目录的名称。 String path3 = System. 阅读全文
posted @ 2011-01-04 10:56 挽星