[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Invoke a program from inside a program

Jonathan

11/2/2008 5:11:00 PM

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


2 Answers

Jonathan

11/3/2008 1:29:00 PM

0

Perfect. Thank you.
-Jonathan

"Ashutosh Bhawasinka" <discussion@ashutosh.in> wrote in message
news:uXQboHRPJHA.4480@TK2MSFTNGP05.phx.gbl...
> 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
>
>
> Jonathan wrote:
>> 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
>>
>>


Ashutosh Bhawasinka

11/3/2008 5:40:00 PM

0

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


Jonathan wrote:
> 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
>
>
>