Third Party Product Review:
Reviews are a new feature of Planet Source Code that allow site visitors to share their experiences on
commercial third party products in real life situations.
if you wanted to send cmd command to and from your console ap this is how
Terms of Agreement:
By using this review, you agree to the following terms...
You may use any of the code in
this review in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
You MAY NOT redistribute this review (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
You may link to this review from another website, but ONLY if it is not wrapped in a frame.
You will abide by any additional copyright restrictions which the author may have placed in the review or review's description.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Text;
using System.Net;
using System.Diagnostics;
namespace ?
{
class Program
{
static void Main(string[] args)
{
Process cmd = new Process();
cmd.StartInfo.FileName = "ipconfig";
cmd.StartInfo.UseShellExecute = false;
cmd.StartInfo.Arguments = "/all";
cmd.StartInfo.RedirectStandardOutput = true;
cmd.Start();
Console.Write(cmd.StandardOutput.ReadToEnd() + "\r\n");
Console.Read();//keeps console from closing
}
}
}
Report Bad Submission
Your Vote
Other User Comments
There are no comments on this submission.
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular review, please
click here instead.)