我想從c#代碼運行一些cmd命令。我跟着一些博客和教程,得到了答案,但我有點混亂,即如何傳遞多個參數? 我使用如下代碼: System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnost
我正在創建這個將創建我自己的證書的簡單控制檯應用程序。這是我的代碼。 var fi = new FileInfo("certificate.cer");
if (!fi.Exists)
{
var startInfo = new ProcessStartInfo();
startInfo.FileName = "makecert.exe";
startInfo.A