function callVBS(scriptName) {
//-Variables--------------------------------------------------------
var wsh, pathName;
if ("ActiveXObject" in window) {
wsh = new ActiveXObject("WScript.Shell");
if (typeof(wsh) == 'object') {
pathName = location.pathname.substr(0, location.pathname.lastIndexOf("/"))+"/";
pathName = pathName.slice(1);
wsh.run("wscript.exe \"" + pathName + scriptName + ".vbs\"", 1, true);
wsh = null;
}
}
else {
alert("Your Browser doesn't support ActiveXObject");
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |