invoke through command prompt

Hi,

Im new to this, need to know how to execute commands on DOS prompt using C# apps. any info would be appreciated.

thanks.

abhi



Answer this question

invoke through command prompt

  • Philippe Cand

    Hi, read this topic:

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1136509&SiteID=1

    This can be helpful.

  • Tammt

    See Process class in System.Diagnostics:

    Here is a quick example:

    Process.Start("cmd");

    You can also add paramter to it like:

    Process.Start("shutdown", "-r");

    You can also See ProcessInfo class for more control over all this.

    Best Regards,

    Rizwan aka RizwanSharp



  • invoke through command prompt