- 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();
- }
How to pass an argument to cmd.exe ?
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


Dinesh SanthalingamPosted Feb 1, 2017, 6:59 AM