在C#.aspx.cs中运行.exe [英] Run .exe in C# .aspx.cs

查看:130
本文介绍了在C#.aspx.cs中运行.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在WebForm应用程序的代码中使用C#运行.exe?

解决方案

Shell函数。


Mythran


" mg" < mg@discussions.microsoft.com>在留言中写道

新闻:AA ********************************** @ microsof t.com ...

如何在WebForm
应用程序的代码中使用C#运行.exe?



使用System.Diagnostics.Process类。


-

Scott
http://www.OdeToCode.com/blogs/scott/


2004年11月3日星期三07:43:04 -0800,mg < mg@discussions.microsoft.com>

写道:

如何在WebForm应用程序的代码中使用C#运行.exe ?




我把


System.Diagnostics.Process.Start(" C:在Page_Load中有
但是写字板没有运行。\\\\\\\\\\\;


我做错了什么?


" Scott Allen"写道:

使用System.Diagnostics.Process类。

-
Scott
http://www.OdeToCode.com/blogs/scott/

关于2004年11月3日星期三07:43:04 -0800,mg < mg@discussions.microsoft.com>
写道:

如何在WebForm应用程序的代码中使用C#运行.exe?



How can I run an .exe using C# from within the code behind of a WebForm app?

解决方案

Shell function.

Mythran

"mg" <mg@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...

How can I run an .exe using C# from within the code behind of a WebForm
app?



Use the System.Diagnostics.Process class.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 3 Nov 2004 07:43:04 -0800, "mg" <mg@discussions.microsoft.com>
wrote:

How can I run an .exe using C# from within the code behind of a WebForm app?




I put

System.Diagnostics.Process.Start("C:\\WINDOWS\\sys tem32\\notepad.exe");

in Page_Load but WordPad did not run. What did I do wrong?

"Scott Allen" wrote:

Use the System.Diagnostics.Process class.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 3 Nov 2004 07:43:04 -0800, "mg" <mg@discussions.microsoft.com>
wrote:

How can I run an .exe using C# from within the code behind of a WebForm app?




这篇关于在C#.aspx.cs中运行.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆