While I can do this:
System.Diagnostics.Process.Start(@"C:\MyFolder\MyProgram.cmd");
I can't do this:
var process = new System.Diagnostics.Process();
process.Start(@"C:\MyFolder\MyProgram.cmd");
Error: Member 'System.Diagnostics.Process.Start(string)' cannot be accessed with an instance reference; qualify it with a type name instead.
What is the reason behind this? Can anyone please explain?
Thanks in advance!