Launch / Check application
<p>I have the following script which I am using in an intranet environment:</p>

<pre><code>function LaunchApp(the_app) {
    var ws = new ActiveXObject("WScript.Shell");
    ws.Exec(the_app);
}
</code></pre>

<p>This allows me to pass it an exe path to launch directly from a web page as long as internet explorer's intranet security settings are adjusted.</p>

<p>The problem is, that not everyone in out network has the same applications, some has more, others have less.  So I was wondering, is it possible to extend the script above to some how check if the path given exists on the users computer before attempting to launch it?</p>
