Calling outside application from within a C# applicaton

  • Thread starter Thread starter gs_sarge
  • Start date Start date
G

gs_sarge

Hi:

I'm using mySQL with an application and need to make sure it is
running from within my server application. I've scanned the MSDN and
haven't found anything on executing applications from within a C#
application.

Is that feature available? Similar to the System call in C (I think).
If not, are there any suggestions on how my server application can
ensure that the mySQL server is running before making database calls?

Any help is appreciated

Steve
 
Hi:

I'm using mySQL with an application and need to make sure it is
running from within my server application. I've scanned the MSDN and
haven't found anything on executing applications from within a C#
application.

Is that feature available? Similar to the System call in C (I think).
If not, are there any suggestions on how my server application can
ensure that the mySQL server is running before making database calls?

Try:
bool System(string FileName)
{
System.Diagnostics.ProcessStartInfo ps = new
System.Diagnostics.ProcessStartInfo(FileName);
return System.Diagnostics.Process.Start(ps)!=null;
}
 
Back
Top