Hi,
In our application we need to use the Process command to execute and
retrieve the string that is returned when we execute IpConfig on the command
prompt.( yes have to use IPConfig)
the following code doesn't seem to work.
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments ="/c: /ipconfig";
p.Start();
p.WaitForExit();
string output = p.StandardOutput.ReadToEnd();
return output;
Need help on this
Thanks
Manoj