C#vs2005中如何调用其他应用程序,就是点击窗体的按钮,就实现运行d盘下的rose.exe文件。求高手了

[复制链接]
查看11 | 回复2 | 2011-11-7 20:29:45 | 显示全部楼层 |阅读模式
private byte[] PrepareAttchment()
{
if (!string.IsNullOrEmpty(this.txtAttchment.Text))
{
FileStream fs = new FileStream(this.txtAttchment.Text.Trim(), FileMode.Open);
byte[] content = new byte[fs.Length];
fs.Read(content, 0, (int)fs.Length); ...
回复

使用道具 举报

千问 | 2011-11-7 20:29:45 | 显示全部楼层
using System.Diagnostics;private void button3_Click(object sender, EventArgs e){
Process.Start(Application.StartupPath + @"\\rose.exe");}将rose.exe文件放到你的程序所在目录下(Deb...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行