1,451
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script type="text/javascript">
function ope(){
new ActiveXObject("WScript.Shell").Run("D:/test/open.bat");
}
function clo(){
new ActiveXObject("WScript.Shell").Run("D:/test/close.bat",0,true);
}
</script>
</head>
<body>
<input type="button" onclick="ope()" value="open">
<input type="button" onclick="clo()" value="close">
</body>
</html>
d:
cd /
cd test
:loop
OpenRelay.exe 1 1
Delay.exe 1000
CloseRelay.exe 1 1
Delay.exe 1000
goto loop