LoginSignup
3
3

More than 5 years have passed since last update.

[C#].Net Coreでexeを呼出す

Posted at

.NetCoreでexeを呼出す

環境

  • .Net Core 2.1

呼出方法

.Net Frameworkと同様に「System.Diagnostics.Process」クラスが利用できる

sample.cs
var proc = new System.Diagnostics.Process();
// exeファイルパス設定
proc.StartInfo.FileName = "exeへのフルパス";
// 引数設定
proc.StartInfo.ArgumentList.Add("引数");
// exe呼出
proc.Start();
// exeの終了を待つ
proc.WaitForExit();

参考

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3