When we use C# programming, we may encounter some special needs: such as making some practical tools, opening a certain application software, and so on.
In short, it actually requires us to open a certain specified file or folder, the code is as follows:
C# code
string filePath = "XXX";//文件(文件夹)路径
System.Diagnostics.Process.Start(filePath);