我c#想生成一个exe文件,点击这个exe文件打开一个网址例如:http://community.csdn.net/ 我c#想生成一个exe文件,点击这个exe文件打开一个网址例如:http://community.csdn.net/ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Process.Start("IExplore.exe", "http://community.csdn.net/"); *****************************************************************************欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/ string uri = @"http://community.csdn.net/";System.Diagnostics.Process browser = new System.Diagnostics.Process();browser.StartInfo.FileName = "iexplore.exe";browser.StartInfo.Arguments = uri;browser.Start(); private void button1_Click(object sender, EventArgs e) { Process p = new Process(); p.StartInfo.FileName = @"C:\Program Files\Internet Explorer\iexplore.exe"; p.StartInfo.Arguments = @"http://community.csdn.net"; p.Start(); } 新建一个控制台应用程序,在main方法中写下如下代码:string uri = @"http://community.csdn.net/";System.Diagnostics.Process browser = new System.Diagnostics.Process();browser.StartInfo.FileName = "iexplore.exe";browser.StartInfo.Arguments = uri;browser.Start();然后编译,运行,在debug目录下就会找到生成的exe文件,把debug目录单独拷贝出来,双击其中的exe文件就行了。 线程 InvokeRequired老是false c# 如何刷新另一个页面 自动更新的问题 请教个问题 请教 C# 调用 DLL 遇到 需要传入 struct 中有 char[] 应该如何处理 在指定的端口,在有udp数据包的时候就将其获取,请高人们看一下列代码该如何修改,谢谢! ASP.net调用VC COM组件,出现“存储空间不足,无法处理此命令”异常 Crystal Report for VS2005 中出现乱码现象?是否是Bug?有解决方法麽? 解决了满分,大侠帮忙啊。。~~~ 谁能帮我看下这个传真函数,是什么问题 两个word的什么区别呢 C# 发送消息
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
System.Diagnostics.Process browser = new System.Diagnostics.Process();
browser.StartInfo.FileName = "iexplore.exe";
browser.StartInfo.Arguments = uri;
browser.Start();
{
Process p = new Process();
p.StartInfo.FileName = @"C:\Program Files\Internet Explorer\iexplore.exe";
p.StartInfo.Arguments = @"http://community.csdn.net";
p.Start();
}
string uri = @"http://community.csdn.net/";
System.Diagnostics.Process browser = new System.Diagnostics.Process();
browser.StartInfo.FileName = "iexplore.exe";
browser.StartInfo.Arguments = uri;
browser.Start();
然后编译,运行,在debug目录下就会找到生成的exe文件,把debug目录单独拷贝出来,双击其中的exe文件就行了。