开发者

Launch / Check application

I have the following script which I am using in an intranet environment:

function La开发者_C百科unchApp(the_app) {
    var ws = new ActiveXObject("WScript.Shell");
    ws.Exec(the_app);
}

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.

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?


You can create a FileSystemObject and interact with the client's filesystem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜