In C# WPF: I want to execute a CMD command, how exactly can I execute a cmd command programmatically?
How about you creat a batch file with the command you want, and call it with Process.Start
dir.bat content:
dir
then call:
Process.Start("dir.bat");
Will call the bat file and execute the dir