On Mon, Aug 10, 2009 at 3:54 PM, vivek_plato<bansvivek@xxxxxxxxx> wrote: > > > <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.. > > Thanks for replying, i try your scipt, plato. but I got error cannot find MyObject. Then I modif your script like this and I got error "Automation Server Couldn't Create Object" function RunExe() { MyObject = new ActiveXObject( "WScript.Shell" ); MyObject.Run("file:///C:/WINDOWS/system32/cmd.exe") ; }