"execPath arg1 arg2 arg3 ..."みたいなコマンドの実行はこんな感じになります。
var shexecID="hepeohbjjmlibfhmdpjkfmgkoccnpeig";download: shellexec.crx
chrome.extension.sendRequest( shexecID, {action: "shellExec", execPath: execPath, args: [arg1, arg2, ...]}, function (response) {} )
ちなみに、うちではproxy設定を変えた別プロファイルのChromePlusを起動するためにこの拡張を使ってます。
0 コメント:
コメントを投稿