run Csharp command on windows code example

Example 1: how to make c# program run cmd commands

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

Example 2: how to run csharp in visual studio code

/*
You should have a application if you want to create a application go 
the folder which is your project now use the command in the dir use the 
command dotnet new console to intialize it as a console application. Now 
You will the a file called {You workspace}.csproj go to the file and run it
*/