How to call windows application with parameters using javascript in mozilla - TechRepublic
Question
July 8, 2008 at 11:42 PM
tpramarao

How to call windows application with parameters using javascript in mozilla

by tpramarao . Updated 17 years, 12 months ago

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)

This discussion is locked

All Comments