www.webdeveloper.com
Results 1 to 2 of 2

Thread: RUn cmd.exe in firefox

  1. #1
    Join Date
    Jul 2012
    Posts
    41

    Run cmd.exe in firefox

    Basically what i need is to run cmd.exe on click with ping command.

    var file = Components.classes["@mozilla.org/file/local;1"]
    .createInstance(Components.interfaces.nsILocalFile);
    file.initWithPath("c:\\windows\\cmd.exe");
    var process = Components.classes["@mozilla.org/process/util;1"]
    .createInstance(Components.interfaces.nsIProcess);
    process.init(file);
    var args = [];
    process.run(false, args, args.length);
    doesnt work for some reason
    Last edited by Stobor; 09-23-2013 at 06:46 AM.

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,331
    Not gonna happen with JS.
    Security...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles