C# opens the file (folder) of the specified path

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);

Guess you like

Origin blog.csdn.net/weixin_44737486/article/details/118222752