kill the process using javasscript
-
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
-
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
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
-
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
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.
-
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
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.