AskHow to use the native Messaging API to open the window program
- Cmd
- Javascript
- Terminal
- Chrome
TychioMarch 26, 2013 question
- concern 1 followers
- Collection 1 Favorites,5.6k browsing
The problem is helpful, the content is complete, and I want to know the answer .0 problems without real value, lack of critical content, no room for improvement
I wrote a chrome app that opened the CMD program with reference to the Fran?ois Beaufort video, but it didn't work, and it should have been called to the local app that opened the program, but it didn't seem like terminal.bat was executing.
Video link: https://www.youtube.com/watch?feature ...
My code: Apps added to Chrome
**background.js**//on Click Connect to the native terminal Appchrome.browserAction.onClicked.addListener (() { chrome.extension.connectNative (' terminal ');});
**manifest.json**{ "My extension", "0.1", 2}
Local application:
**manifest.json**{ "Terminal", "Open Your terminal", " chrome-extension:// imefmccdbejlchmiempjpojbflghofdo/"}}
**terminal.bat**OFFCD%systemroot%\system32start cmd.exe
My question is, is there an error in my code? Or is it a chrome version or an OS problem? My chrome is 25.0.1364.172 m and the operating system is window 7. Or tell me how to debug in bat? At a minimum, you can see if the bat file is executed. Thanks a lot!
How to use the native Messaging API to open the window program