🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #213

Re: run external app?

#213
From: Starbuck
Date: Wed, 21 Jun 2006 11:31
42 lines
1968 bytes
Thanks

"David Clegg" <dclegg@gmail.com> wrote in message 
news:xn0enpkdokaoj9000@newsgroups.borland.com...
> nivekski wrote:
>
>> In c#buildder what is the best way of launching a external
>> application in run & wait mode?
>
> The following should work :-
>
> using System;
> using System.Diagnostics;
>
> namespace ProcessTester
> {
>  class Class
>  {
>    [STAThread]
>    static void Main(string[] args)
>    {
>      Process process = new Process();
> process.StartInfo.FileName = "notepad.exe";
>      process.Start();
>      process.WaitForExit(System.Threading.Timeout.Infinite);
>      Console.WriteLine("Terminated");
>    }
>  }
> }
>
> -- 
> Cheers,
> David Clegg
> dclegg@gmail.com
> http://cc.borland.com/Author.aspx?ID=72299
>
> QualityCentral. The best way to bug Borland about bugs.
> http://qc.borland.com
>
> "All right, brain. You don't like me and I don't like you, but let's
> just do this and I can get back to killing you with beer." - Homer
> Simpson 
Technical Details
Message-ID: <44992e2d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4497a3b7$1@newsgroups.borland.com> <xn0enpkdokaoj9000@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,e8bbb08fd6c120bd
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Starbuck" <kev@kevsbox.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
References:  <4497a3b7$1@newsgroups.borland.com> <xn0enpkdokaoj9000@newsgroups.borland.com>
Subject: Re: run external app?
Date: Wed, 21 Jun 2006 12:31:55 +0100
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.229.30.227
Message-ID: <44992e2d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1150889517 80.229.30.227 (21 Jun 2006 04:31:57 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail