Purvesh Sangani

Purvesh Sangani

  • NA
  • 62
  • 7.3k

How can i run my exe using jQuery?

Jul 5 2017 6:05 AM
please give me some information related my issue!
 
<html> 
<head>
<script language="JavaScript" type="text/javascript">
MyObject = new ActiveXObject( "WScript.Shell" )
function RunNotePad()
{
MyObject.Run("notepad.exe") ;
}

</script>

</head>
<body>
<h1>Run a Program</h1>
This script launch the file >> c:\windows\notepad.exe<p>
<button onclick="RunNotePad()">Run Windows NotePad</button>
</body>
</html>



and i have find many more code's but nothing work!
 

Answers (3)