我正在使用 Process 从我的窗口应用程序(.net 3.5 框架,C#)打开一个网站(比方说 www.google.com)。启动方法。它在所有机器上工作正常,但在一台机器上显示错误“没有应用程序与此操作的指定文件相关联”。
最佳答案
Process process = new Process();
process.StartInfo = new ProcessStartInfo("https://www.google.lk", string.Empty);
process.StartInfo.Verb = string.Empty;
process.Start();
以上代码完全满足您的要求。
关于c# - “No Application is associated with specified file for this operation”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26140406/