try
{
System.Diagnostics.ProcessStartInfo runcmd =
new System.Diagnostics.ProcessStartInfo("cmd", "/c " + "ipconfig");
runcmd.RedirectStandardOutput = true;
runcmd.UseShellExecute = false;
runcmd.CreateNoWindow = true;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo = runcmd;
proc.Start();
string result = proc.StandardOutput.ReadToEnd();
textBox1.Text = result;
}
catch (Exception objException)
{
}
hope this helps...