Creative, Informative and Entertaining Stuff for everyone

Monday February 6th 2012

Categories

Archives

Calender

February 2012
S M T W T F S
« Dec    
 1234
567891011
12131415161718
19202122232425
26272829  

How to execute local system command by using javascript

Bookmark and Share

<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 a Reply