I am trying to troubleshoot why the following function is not working.
public void RunCmd() { string strCmdText; strCmdText = "/C [enter command stuff here]"; System.Diagnostics.Process.Start("CMD.exe", strCmdText); }
However, whenever I try to start it or throw some breakpoints, a command opens, shows an error, and then closes very quickly (so fast that I canβt read anything).
Is there a way to stop the program or find out what is happening? Breakpoints don't seem to work.
When I directly type it on the command line instead of starting with this C # script, the command works just fine.
source share