Sometimes there are some DOS commands that we need to call when executing the program, which requires the use of the relevant interface provided by C#.
The code is as follows, it is very simple, I believe everyone can understand it, so I won’t go into details.
using System; using ; using ; using ; using ; using ;//This is to make dos command call namespace ExecuteCMD { //Implement the function of reading Excel files class ExecuteCMD { public static void CreateDll(){ Process p = new Process(); = ""; = false; = true; = true; = true; = false; (); ("systeminfo"); (()); ("exit"); } } }