Execute exe file in C# and wait for it's finish
2011-07-06 17:46:50

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading;

using System.Diagnostics;

namespace ConsoleApplication4

{

class Program

{

static void Main(string[] args)

{

for (int i = 0; i < 100; i++)

{

Thread.Sleep(100);

Console.WriteLine(i);

}

Process p = new Process();

//p.StartInfo.WorkingDirectory = @"";

p.StartInfo.FileName = @"";

p.StartInfo.Arguments = @"";

p.StartInfo.CreateNoWindow = true;

p.Start();

p.WaitForExit();

for (int i = 0; i < 100; i++)

{

Thread.Sleep(100);

Console.WriteLine(i);

/*

public static Process Start(string fileName);

// fileName : 프로세스에서 실행될 응용 프로그램 파일 이름입니다.

//문서 또는 응용 프로그램 파일 이름을 지정하여 프로세스 리소스를 시작하고 해당 리소스를 새 Process 구성 요소에 연결합니다

Process.Start("IExplore.exe");

public static Process Start(string fileName, string arguments);

*/

}

}

}

}

▼ more
nq
2011-07-06 10:03:28

_: blank node

<> uri

"" literal

▼ more
aa
2011-07-05 17:30:09

aa

▼ more
창의과제 할일
2011-07-05 15:32:41

youtube 여러개인 페이지 실험.

▼ more