Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
using System.Runtime.InteropServices;namespace Run{public class CMD{[DllImport("msvcrt.dll")]public static extern int system(string cmd);public static void Main(){system("Echo Hello");system("pause");}}}
static void Main(string[] args) { System.Diagnostics.Process useprocess; useprocess = new System.Diagnostics.Process(); useprocess.StartInfo.FileName="cmd.exe"; useprocess.Start(); }