var fpath="C:\TVT_"+cur_date+"_"+cur_time+".avi";
Components.utils.import("resource://gre/modules/FileUtils.jsm");
var env = Components.classes["@mozilla.org/process/environment;1"]
.getService(Components.interfaces.nsIEnvironment);
var shell = new FileUtils.File(env.get("COMSPEC"));
var args = ["/c", "cd.. & cd.. & C: & cd C:/ffmpeg/bin & record.bat "+fpath];
var process = Components.classes["@mozilla.org/process/util;1"]
.createInstance(Components.interfaces.nsIProcess);
process.init(shell);
process.runAsync(args, args.length);
- I don t want to use taskkill.exe, /MIN, /C, /B, rather I want to quit this ffmpeg process
- I read about CMDOW but did not find cmdow.exe inside system32 directory.
- So how can I send quit command within the same window which is running ffmpeg process?
谢谢