its a while since I used the ns interfaces. I want to run

   gambit-enumpure < e02.nfg > numerate.txt

how do I pass as arguments in nsiProcess?

I asssume the file names must be prefixed with c:\\

is this correct?




***************************************************************************************

var file = Components.classes["@mozilla.org/file/local;1"]
 .createInstance(Components.interfaces.nsILocalFile);

file.initWithPath("c:\\gambit-enumpure.exe ")

var process=Components.classes["@mozilla.org/process/util;1"]
.createInstance(Components.interfaces.nsIProcess);

process.init(file)

var args = ["<","c:\\e02.nfg",">","c:\\numerate.txt"]

process.run(true,args,args.length)

*****************************************************

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to