Application.StartupPath与Application.ExecutablePath

MessageBox.Show(System.IO.Directory.GetCurrentDirectory());

MessageBox.Show(System.Windows.Forms.Application.StartupPath);
 

MessageBox.Show(System.Windows.Forms.Application.ExecutablePath);

MessageBox.Show(HttpRuntime.AppDomainAppPath);


 

 

Server.MapPath("Data\\News.mdb")

“\\”或者“/”

你可能感兴趣的:(Application.StartupPath与Application.ExecutablePath)