通過網頁開啟應用程式

2021-06-22 10:07:08 字數 623 閱讀 9993

具體**:

但它是如何實現的呢?下面文章以及微軟官方說明詳細解釋了其工作原理:

[hkey_classes_root\tencent]

@=」tencentprotocol」

「url protocol」=」d:\\program files\\tencent\\qq\\timwp.exe」

[hkey_classes_root\tencent\defaulticon]

@=」d:\\program files\\tencent\\qq\\timwp.exe,1″

[hkey_classes_root\tencent\shell]

[hkey_classes_root\tencent\shell\open]

[hkey_classes_root\tencent\shell\open\command]

@=」\」d:\\program files\\tencent\\qq\\timwp.exe\」 \」%1\」"

此登錄檔所實現的就是當瀏覽器(或其它)碰到 tencent://… 時,自動呼叫 timwp.exe,並把 tencent://… 位址作為第乙個引數傳遞給 timwp.exe。

因此可以只要自己註冊協議後,就可以通過網頁來啟動應用程式了。

通過C 開啟乙個應用程式

system.diagnostics.processstartinfo info new system.diagnostics.processstartinfo 設定外部程式名 info.filename eclipse.exe 設定外部程式工作目錄為 c info.workingdirectory...

開機開啟應用程式

論壇賬號 baiduluckyboy 經常在csdn出沒 版權 解放軍電子工程學院baiduluckyboy wangyuluyulu 126.com 平台 wince6.0.0 s5pc100 bsp 發布日期 2010 09 08 最後修改 記得由於專案的老大要我們在開機的時候啟動自己寫的應用程...

node開啟本地應用程式

最簡單的方法 const cp require child process cp.exec start 自動開啟預設瀏覽器 另一種方法是安裝open 依賴包 const open require open async opens the url in the default browser.awai...