How to execute local system command by using javascript

<script type=”text/javascript”>
MyObject = new ActiveXObject( “WScript.Shell”)
MyObject.Run(“cmd”) ;
</script>

In second line instead of “cmd” you can execute any command of your system , it could me “notepad.exe” or any other command .

Leave your comment