打开浏览器 window.open(urlStr,"","resizable=no,top=10,left=10,width="+ww+",height="+hh+",status=no,menubar=1,toolbar=1,Scrollbars=1,Location=1,Direction=0,resizable=1");
打开exe
function exec(){
var userId = "<%=user.getUserID()%>";
//var exePath =decodeURIComponent("\""+'C:\\Program Files\\HTInc\\HTShell\\xxx\\xxx.exe "-w "'+userId); //绝对路径
var exePath =decodeURIComponent("\""+''+window.getHTShellPath()+''+'\\xxx\\xxx.exe "-w "'+userId);//相对路径
window.oldOnError = window.onerror;
window._command = exePath;
window.onerror = function (err) {
if (err.indexOf('utomation') != -1) {
alert('命令已经被用户禁止!&