How to execute an exe using Javascript?
<p>I need to open an EXE from a folder, when the folder is present, using javascript. I have added the code, but am not able to open the EXE after checking the folder, please share your thoughts.</p>

<pre><code>&lt;html&gt;
    &lt;body&gt;
    &lt;script language="JScript"&gt;
    &lt;!--
    function checkfolder()
    { 

        var myObject;
        myObject = new ActiveXObject("Scripting.FileSystemObject");

        if(myObject.FolderExists("\\tmp"))
 {
            alert("tmp Folder Exists");
        }  
 else
 {
           alert("tmp Folder doesn't exist"); 
        }
     }

    --&gt;
    &lt;/script&gt;
    Check for folder "tmp"
    &lt;form name="myForm"&gt;
    &lt;input type="Button" value="Check Folder" onClick='checkfolder()'&gt;
    &lt;/form&gt;
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>
