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); }
c# 实现操作系统 “运行” 功能
桂棹兮兰桨,击空明兮溯流光。