Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Execute Any Process</title>
- <script>
- function start()
- {
- var file = Components.classes["@mozilla.org/file/local;1"]
- .createInstance(Components.interfaces.nsILocalFile);
- file.initWithPath("/usr/bin/kate");
- file.launch();
- }
- </script>
- </head>
- <body>
- <input type="button" value="Run a process" onclick="start();"/>
- </body>
- </html>
Add Comment
Please, Sign In to add comment