how to start cmd in csharp

Code Example - how to start cmd in csharp

                
                        string strCmdText = "pip install -r requirements.txt";
Process.Start("CMD.exe", strCmdText);
                    
                
 

how to do cmd command csharp

                        
                                string strCmdText;
strCmdText= "/C copy /b Image1.jpg + Archive.rar Image2.jpg";
System.Diagnostics.Process.Start("CMD.exe",strCmdText);
                            
                        
 

Related code examples