C#怎么通过一个按钮Button,实现点击这个按钮可以打开一个文件或者文件夹?

时间:2018-08-13 12:50:27   收藏:0   阅读:320

string path1 = @"d:\log.txt";  //打开D盘下的log.txt文件

System.Diagnostics.Process.Start(path1);
string path2 = @"d:\test";  //调用资源管理器,打开D盘下的test文件夹
System.Diagnostics.Process.Start("explorer",path2);

原文:https://www.cnblogs.com/soundcode/p/9467314.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!