string mypath = HttpContext.Current.Server.MapPath(".");
//string backupDIR = "D:\\BackupMSQLDB";
string backupDIR = mypath+ "\\BackupMSQLDB";
string db_name = "OSB";
//Label1.Text=System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
//çıktısı file:\D:\Desktop\c#\Deneme\WebApplicationRapor\WebApplicationRapor\bin
//Label1.Text=System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath;
// çıktısı D:\Desktop\c#\Deneme\WebApplicationRapor\WebApplicationRapor\
Label1.Text=HttpContext.Current.Server.MapPath(".");
// çıktısı D:\Desktop\c#\Deneme\WebApplicationRapor\WebApplicationRapor
//Label1.Text = System.IO.Directory.GetCurrentDirectory();
// C:\Program Files (x86)\IIS Express
Hiç yorum yok