1.//声明一个程序信息类
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();//设置外部程序名
Info.FileName = "notepad.exe";//设置外部程序的启动参数(命令行参数)为test.txt
Info.Arguments = "ss.txt";//打开文件
System.Diagnostics.Process.Start(Info);2.用数组先进行遍历处理。然后再向ListBox中添加!
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();//设置外部程序名
Info.FileName = "notepad.exe";//设置外部程序的启动参数(命令行参数)为test.txt
Info.Arguments = "ss.txt";//打开文件
System.Diagnostics.Process.Start(Info);2.用数组先进行遍历处理。然后再向ListBox中添加!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货