Skip to content

Instantly share code, notes, and snippets.

@on195594
Created January 4, 2018 10:54
Show Gist options
  • Save on195594/371fc00ef2573d7f49877dbe2505ad3c to your computer and use it in GitHub Desktop.
Save on195594/371fc00ef2573d7f49877dbe2505ad3c to your computer and use it in GitHub Desktop.
@echo off
rem ==========================
set interval=45
rem 检测间隔,单位:秒
rem ==========================
:LOOP
cls
@echo 执行机远程操控任务检测中 请勿关闭此框 %random%
if exist D:\ExecTask\ExecTask.bat (
cd /d D:\ExecTask
call ExecTask.bat
)
if exist D:\ExecTask\ExecTask.bat del /f /q D:\ExecTask\ExecTask.bat>nul
choice /t %interval% /d y /n >nul
goto LOOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment