I am currently trying to execute a program with a parameter in a C# form. The code I have:
private void button1_Click_1(object sender, EventArgs e)
{
Process.Start("nan.exe");
}
Although I am trying to pass this parameter: “nan.exe C:\Windows\System32”
How could this me done in my case?
Use:
Using Environment.GetFolderPath() is recommended.