- static void Main(string[] args)
- {
-
- Process p = new Process();
- ProcessStartInfo startInfo = new ProcessStartInfo();
- startInfo.FileName =@"C:\systemprocess\cmd.exe";
- //I want to pass an argument to my cmd.exe
-
- p.StartInfo = startInfo;
- p.Start();
- }
This will open the cmd.exe . But I want to Send something programmatic.
Actually When I open Cmd I will give
- 1) d:
- 2) cd folder1
- 3) Force it 10.10.26.0 -a
I will type this in exe.Now I want to this in Programmatic.How to do this?