System.Diagnostics.Process() help
Hi everyone, small problem with the use of System.Diagnostics.Process() method.
I am using the software OmniPeek and well it can be run via the command prompt to start up and autorun and do what I need it to do; I also have a few other pieces of software I want to run along with it.
Long story short, I don't want have to constantly go into the cmd promt to do this, so I tried writing a lil widget. The code I wrote however, does not work, it just opens the program and doesn't execute the commands with it.
Here is the code
[code]
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "C:\\Program Files\\WildPackets\\OmniPeek\\OPeek.exe";
proc.StartInfo.Arguments = "/autostart";
proc.Start();
[/code]
Any help, suggestions?

