Invoke a program from inside a program

J

Jonathan

Hi all,
What is the C# equivalent of a VB6 Shell command? I want to invoke Adobe
Reader from within my C# program.

Thank
Jonathan
 
J

Jonathan

Perfect. Thank you.
-Jonathan

Ashutosh Bhawasinka said:
Use the class
System.Diagnostics.Process

call it's static method "Start" passing the file name. If you want more
control over the process, create a System.Diagnostics.ProcessStartInfo
class object and pass it to one of the overloaded Start method in Process
class.

Thanks & Regards,
Ashutosh Bhawasinka
 
A

Ashutosh Bhawasinka

Use the class
System.Diagnostics.Process

call it's static method "Start" passing the file name. If you want more
control over the process, create a System.Diagnostics.ProcessStartInfo
class object and pass it to one of the overloaded Start method in
Process class.

Thanks & Regards,
Ashutosh Bhawasinka
 

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