Re: Running .exe progam with javascript

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<html> 
 <head> 
     <script language="JavaScript" type="text/javascript">  
         MyObject = new ActiveXObject( "WScript.Shell" )  
         function RunExe()   
         {  
            MyObject.Run("file:///C:/WINDOWS/system32/cmd.exe") ;  
        }  


    </script> 
 </head> 
 <body> 
    <h1>Run a Program</h1> 
    This script launch the file any Exe File<p> 
    <button onclick="RunExe()">Run Exe File</button> 
 </body> 
</html> 


TRY this..i have tried it and its working..



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux