function exec() { window.onerror = function (err) { if (err.indexOf(‘utomation‘) != -1) { alert(‘命令已被用禁止!‘); return true; } else{ return false; } }; var wsh = new ActiveXObject(‘WScript.Shell‘); if (wsh){ wsh.run("C:/Users/Vision/Desktop/1111.sql"); } window.onerror = window.oldOnError; }
时间: 2024-10-10 16:04:22