private void button1_Click(object sender, EventArgs e)
{
Process help = new Process();
help.StartInfo.FileName = @"C:\帮助.chm";
help.StartInfo.Verb = "Open";
help.StartInfo.CreateNoWindow = true;
help.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
help.Start();
}
执行到最后一行的时候报 “找不到应用程序” 错误。帮解决一下。
{
Process help = new Process();
help.StartInfo.FileName = @"C:\帮助.chm";
help.StartInfo.Verb = "Open";
help.StartInfo.CreateNoWindow = true;
help.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
help.Start();
}
执行到最后一行的时候报 “找不到应用程序” 错误。帮解决一下。
解决方案 »
- datagrid如何取其中一个单元格宽度高度后并把数据赋值进去
- 关闭socket数据流时出现异常
- 有人会做十六进制编辑器吗?会的牛人进,分不够再加!
- xml元素的Text内容为几个空格的情况,要怎么处理
- 急...求SQLDMO.dll在com应用中怎样设置湖那员数据库为强制还原...
- 高手帮帮忙啊!~!~获取像素值
- 如何在打印文本的时候自动换行?
- 谁有带GPS功能 和 windows mobile 操作系统的手机,帮我测试用一下,我想通过程序得到手机位置经纬度
- 请教"未将对象引用设置到对象的实例"执行cmdDel.ExecuteNonQuery()
- FtpWebRequest上传下载问题
- C# 修改txt的某列
- 解析xml
是这样吗?
help.StartInfo.FileName = @"C:\WINDOWS\hh.exe";
help.StartInfo.Arguments = @" C:\帮助.chm";
问题应该是URL写的有问题吧。。比如这个路径:help.StartInfo.FileName = @"C:\WINDOWS\hh.exe";应该是 @"C:\\WINDOWS\\hh.exe";双斜杠吧。。