Friends i am in a wierd situation.
i have a firefox extension, which i use to invoke a executable a.exe located in a known path on a users machine. The problem is that this exe cannot be launched on its own and requires presence of b.exe in the same directory Basically what is the way to actually navigate to directory and execute an exe there? This way i can execute a.exe with all the other dependencies in its directory? This is what i am doing as of now: Var ngPath="C:\\Program Files\\myDIR\\HELLOWORLD\\A.exe"; const nsILocalFile = Components.interfaces.nsILocalFile; const lfContractID = "@mozilla.org/file/local;1"; var exe = Components.classes[lfContractID].createInstance(nsILocalFile); exe.initWithPath(ngPath); const nsIProcess = Components.interfaces.nsIProcess; const lfContractID2 = "@mozilla.org/process/util;1"; var proc = Components.classes[lfContractID2].createInstance(nsIProcess); proc.init(exe.nsIFile); if (!args) args = new Array(); proc.run(false,args,args.length); please help! thanks! _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
