run application

A

adish11

Hi,
In web application coded with c#, I'm trying to run application from the
code.
I'm using System.Diagnostics.Process.Start("c:\\test.exe")

Although it recognize the file it doesn't run him.

Can you help me,please?
 
M

Michael C

What's the error message? Try this in your code to get the exact error:


try
{
System.Diagnostics.Process.Start("c:\\test.exe");
}
catch (Exception ex)
{
MessageBox.Show(this, ex.Message, "Error!");
}

I'm using Process.Start in a couple of apps with no problem.

Thanks,
Michael C.
 

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

Top