Code
C#中获取当前程序集路径:AppDomain.CurrentDomain.BaseDirectory
C#中获取当前程序集路径:AppDomain.CurrentDomain.BaseDirectory
例如:
Code
FimeName = AppDomain.CurrentDomain.BaseDirectory + @"temp\" + base.ObejctID + DateTime.Parse(btime).ToString("yyyyMMdd") + DateTime.Parse(ntime).ToString("yyyyMMdd") + ".html";
FimeName = AppDomain.CurrentDomain.BaseDirectory + @"temp\" + base.ObejctID + DateTime.Parse(btime).ToString("yyyyMMdd") + DateTime.Parse(ntime).ToString("yyyyMMdd") + ".html";