打开选中的文件夹
System.Diagnostics.Process.Start("explorer.exe", filePath);
打开选中的文件夹并指向选中的文件
System.Diagnostics.Process.Start("explorer.exe", "/select," + filePath);
本文介绍了如何使用C#代码通过调用explorer.exe来打开指定路径的文件夹,并展示了如何让文件资源管理器直接定位到特定的文件。
打开选中的文件夹
System.Diagnostics.Process.Start("explorer.exe", filePath);
打开选中的文件夹并指向选中的文件
System.Diagnostics.Process.Start("explorer.exe", "/select," + filePath);

被折叠的 条评论
为什么被折叠?