Question Locked

How to call windows application with parameters using javascript in mozilla

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

see the bellow code which i have

const url = "E:\\ThunderBirdApplication\\Application.exe" "%1"
var uri = Components .classes["@mozilla.org/network/simple-uri;1"] .getService(Components.interfaces.nsIURI)
uri.spec = url
Components .classes["@mozilla.org/uriloader/external-protocol-service;1"] .getService(Components.interfaces.nsIExternalProtocolService) .loadUrl(uri)

if it is correct the above code to pass parameter then, how to call those parameters from windows application(Application.exe)

1 reply

This discussion is closed to new replies.