0

我有以下代码:

        var process = new Process
                    {
                        StartInfo = { FileName = "http://www.myurl.com", UseShellExecute = false }
                    };

                    process.Start(); <-- here exception
                    process.WaitForExit();//waits while process is finished

 //continues to execute

由于某种原因,它会引发“系统找不到指定的文件”错误。我想做的是在调用 process.Start() 之后,打开 IE 窗口。程序等待,直到用户单击 IE 窗口中的“确认”按钮。单击此按钮后,程序将继续执行。

4

1 回答 1

0

尝试

Process objProcess = Process.Start("IEXPLORE.EXE", "-nomerge http://google.com/");
于 2013-06-05T12:59:56.813 回答