Code:<html> <head> <title>Test Test</title> <script type="text/javascript" language="JavaScript"> function LaunchCommand() { var launcher = new ActiveXObject("WScript.Shell"); launcher.Run("file:///C:/Program/ColorCop.exe"); window.open('','_self',''); window.close(); } </script> </head> <body> <br> <center> <font size = 5>Click the button</font> <br><br> <input name="Command" value="RGB Color" onclick="LaunchCommand()" type="button" style="width:200px;height:100px"> <body> <center> </html>
Above is a short code which i have written.
When i tested it in windows XP, the program ColorCop opens when i click the button.
But in Windows Server 2008, nothing happens when i click the button.
Any idea why?
TQ


Reply With Quote
Bookmarks