Invoking Shell Commands in C# Programs
After extensive wrangling and experimentation, I finally have managed to successfully invoke external commands in C# programs, which I hope will make me a considerably more productive C# programmer. So without further ado, let’s dive into the nitty gritty details.
Purpose First, you might ask: why would one need to do this? Ultimately, the potential to automate all sorts of things by invoking external commands inside a program are nearly limitless.