How to execute local system command by using javascript

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

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.