//WCF service: string servicePath = System.Web.Hosting.HostingEnvironment.MapPath("~"); //F:WorkSpaceEHRsrcvs2010EHREHRinDebug string strBaseDirectory = System.AppDomain.CurrentDomain.BaseDirectory; //F:WorkSpaceEHRsrcvs2010EHREHRinDebugEHR.vshost.exe string strMainModule = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; //F:WorkSpaceEHRsrcvs2010EHREHRinDebug string strCurrentDirectory = System.Environment.CurrentDirectory; //F:WorkSpaceEHRsrcvs2010EHREHRinDebug string strGetCurrentDirectory = System.IO.Directory.GetCurrentDirectory(); //F:WorkSpaceEHRsrcvs2010EHREHRinDebug string strApplicationBase = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase; //F:WorkSpaceEHRsrcvs2010EHREHRinDebug string strStartupPath=System.Windows.Forms.Application.StartupPath; //F:WorkSpaceEHRsrcvs2010EHREHRinDebugEHR.EXE string strExecutablePath = System.Windows.Forms.Application.ExecutablePath;