📌  相关文章
📜  如何在winforms中单击按钮打开任何文件 - C#代码示例

📅  最后修改于: 2022-03-11 14:49:08.487000             🧑  作者: Mango

代码示例1
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "The app location but if you type with \ type \\";
startInfo.Arguments = "The command of the file if there is not then don't type here anything";
process.StartInfo = startInfo;
process.Start();