chrome 插件开发,调用批处理
根据以下代码可以调用 gitadd.bat,已经成功了,但是这个bat需要参数,参数是文件名,应该怎么传
```
var hostNames = "com.google.chrome.git";
var port = chrome.runtime.connectNative(hostNames);
```
```
{
"name": "com.google.chrome.git",
"description": "Chrome Native Messaging API Example Host",
"path": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\60.0.3112.113\\default_apps\\Demo\\cmd\\git\\gitadd.bat",
// "path":"notepad.exe",
"type": "stdio",
"allowed_origins": [
"chrome-extension://gfflfnfndpfhajceciajphhgcahbfcde/"
]
}
```