c# 实现操作系统 “运行” 功能

void Main()
{
    var psi = new ProcessStartInfo();
    psi.FileName = "cmd.exe";
    psi.Arguments = "/c start /ABOVENORMAL notepad "c:\abc.txt"";
    psi.CreateNoWindow = true;
    psi.UseShellExecute = false;
    psi.RedirectStandardOutput = true;
    Process.Start(psi);
}
桂棹兮兰桨,击空明兮溯流光。
原文地址:https://www.cnblogs.com/nanfei/p/14825582.html