var sRES=external.m2_plugin_folder(%max_security_id, 'Restart Maxthon')+'restart.vbs'; var sMAX=sRES.replace('Plugin\\RestartMaxthon\\restart.vbs', 'Maxthon.exe'); var oWSH=external.max_activex(%max_security_id, 'WScript.Shell'); oWSH.run('"'+sRES+'" "'+sMAX+'" max:last'); oWSH=null; external.m2_run_cmd(%max_security_id, 33127)