Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where Am I? sys(2003)
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00968825
Message ID:
00968840
Views:
7
>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????
Previous
Reply
Map
View

Click here to load this message in the networking platform