Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. kill the process using javasscript

kill the process using javasscript

Scheduled Pinned Locked Moved JavaScript
javascripthtmllinuxtoolstutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vasu_sri
    wrote on last edited by
    #1

    iam new for javascript. how to kill or terminate the specific process from taskmanager. please let me know if anybody have an idea about this.

    <html>
    <body>

    <script>
    w = new ActiveXObject("WScript.Shell");
    w.run("taskkill.exe /im notepad.exe");
    </script>

    </body>
    </html>

    Regards, Srinivas

    Richard DeemingR T S 3 Replies Last reply
    0
    • V vasu_sri

      iam new for javascript. how to kill or terminate the specific process from taskmanager. please let me know if anybody have an idea about this.

      <html>
      <body>

      <script>
      w = new ActiveXObject("WScript.Shell");
      w.run("taskkill.exe /im notepad.exe");
      </script>

      </body>
      </html>

      Regards, Srinivas

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You can't. Giving a website access to terminate processes on the user's computer would be a massive security risk. If there was any way to do it, it would have been found, exploited, and patched many years ago.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • V vasu_sri

        iam new for javascript. how to kill or terminate the specific process from taskmanager. please let me know if anybody have an idea about this.

        <html>
        <body>

        <script>
        w = new ActiveXObject("WScript.Shell");
        w.run("taskkill.exe /im notepad.exe");
        </script>

        </body>
        </html>

        Regards, Srinivas

        T Offline
        T Offline
        twseitex
        wrote on last edited by
        #3

        w = new ActiveXObject("WScript.Shell"); that ist Windows Host Script (WHS) and NOT Javascript. ActiveX only useable with windows. Javascript is a languange not only for browsers run unter windows. w.run("taskkill.exe /im notepad.exe"); Use WHS inside browser: Only Internet Explorer.

        1 Reply Last reply
        0
        • V vasu_sri

          iam new for javascript. how to kill or terminate the specific process from taskmanager. please let me know if anybody have an idea about this.

          <html>
          <body>

          <script>
          w = new ActiveXObject("WScript.Shell");
          w.run("taskkill.exe /im notepad.exe");
          </script>

          </body>
          </html>

          Regards, Srinivas

          S Offline
          S Offline
          SaqibRasheed
          wrote on last edited by
          #4

          JavaScript is the client side scripting language and you can not access Task Manager using JavaScript. So, you can not kill any process using JavaScript. Also, a website have access to only some specific folders of the drive and that access is very limited. You can not access anything outside those specific folders.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups