Thanks for quick reply
But my requirement is automatically get the current application path,Even though after deployment the project in different location.
Below is the code what i am using. I think it is lengthy ,Is there any short form of the same work.
try
{
Process p;
String s;
p=new Process();
//p.StartInfo.FileName = @"F:\C#dotnet\Energy Audit\venky.txt";
s = AppDomain.CurrentDomain.BaseDirectory;
s=s+@"venky.txt";
p.StartInfo.FileName =s;
p.StartInfo.Arguments ="";
p.Start();
}
catch (System.Exception ex)
{
MessageBox.Show(ex.Message);
}