2012-07-13 51 views
0

可能重複:
How to start a process from C# (WinForms)如何在C#代碼運行另一個安裝的程序

我公司開發的語音識別應用程序。現在,我想要做的就是像

if(voiceRecognize == browser) 
    //Open a browser 

我想你明白我的意思。我知道這是可能的,但我怎麼能執行這項任務?

任何示例代碼或教程鏈接將不勝感激。

感謝

+0

很多重複的!搜索可能會節省你的時間:) – Blorgbeard 2012-07-13 03:24:27

+0

謝謝:-)我把它標記爲重複。希望版主會刪除這個問題。 – Adnan 2012-07-13 03:28:08

回答

1

看看Process.Start()。您可能能夠發佈一個實際的網頁有點像這樣:

Process.Start("\"%ProgramFiles(x86)%\Internet Explorer\iexplore.exe\" /\"http://www.google.com\""); 
+3

或只是'Process.Start(「http://www.google.com」);' – 2012-07-13 03:28:00

+2

是啊,不要硬編碼到IE :( – Blorgbeard 2012-07-13 03:28:54

+0

我認爲會啓動它在默認瀏覽器...酷。沒有意識到Process.Start()是那麼聰明:) – jwatts1980 2012-07-13 03:29:08

相關問題