• 外部プログラムを実行する
Internet Explorerを起動して"http://mobiquitous.com/"を開くためのコードは以下のようになります.
Process.StartInfo.FileNameにプログラム名を,Process.StartInfo.Argumentに起動時の引数を指定します.

using System.Diagnostics;

string program = @"C:\Program Files\Internet Explorer\IEXPLORE.EXE";
string argument = @"http://mobiquitous.com/";

Process extProcess = new Process();
extProcess.StartInfo.FileName = program;	//起動するファイル名
extProcess.StartInfo.Arguments = argument;	//起動時の引数

extProcess.Start();				//プロセス開始

タグ:

+ タグ編集
  • タグ:
最終更新:2008年05月09日 21:26