[英]Getting an Exception System.ComponentModel.Win32Exception : The system cannot find the file specified in Sikuli C#
[英]System.ComponentModel.Win32Exception: “The system cannot find the file specified”
又是我。 我在执行此代码的Visual Studio 2017中遇到问题
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MyCoreApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void toolStripMenuItem1_Click(object sender, EventArgs e)
{
}
private void openEdgeToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("start microsoft-edge:");
}
}
}
它引发问题中描述的错误。 我要执行的程序是Microsoft Edge,如果我启动命令提示符并手动执行,则可以正常运行。 我在其他地方研究了这个问题,有人说这与WOW或WOW64有关。 但是我是Visual Studio的新手,并且比Windows内部对Linux内部更熟悉。 感谢您的帮助,也非常感谢您的友好和理解。
不用启动参数就可以使用
Process.Start("microsoft-edge:");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.