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;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top