>I think there are a couple of different ways you can do it. Give this one a try...
>
>
>AppDomain currentDomain = AppDomain.CurrentDomain;
>String cFolder=currentDomain.BaseDirectory.ToString();
>
>
>Let me know if that works.
>Kevin
Thanks. That is close to what i was looking for. Shows me MyDir\bin\Debug. I want to go to MyDir\Application so this is the fudge I'm doing for now.
case "APP":
lcDir = "..\\..\\Application\\";
break;
}
AppDomain currentDomain = AppDomain.CurrentDomain;
String cFolder=currentDomain.BaseDirectory.ToString();
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = true ;
myProcess.StartInfo.FileName = lcDir+lcFile+".pdf";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
myProcess.Start();
Still fails????