永发信息网

每隔一段时间运行*.bat

答案:2  悬赏:20  手机版
解决时间 2021-03-02 07:18
  • 提问者网友:黑米和小志
  • 2021-03-02 00:06
问题大概是这样的,有一个批处理文件test.bat,想再写一个批处理x.bat对它进行控制,要求:x.bat可以一直存在于任务栏;每隔10分钟运行一次test.bat.
高手指点,谢谢!
最佳答案
  • 五星知识达人网友:野慌
  • 2021-03-02 00:14
@echo off
:again
test.bat
ping -n 600 127.1>nul
goto again
全部回答
  • 1楼网友:洒脱疯子
  • 2021-03-02 00:55
你好 可以用 schtasks命令创建任务计划 用bat启动文件路径修改替换c:\windows\system32\cmd.exe 比如 每隔1 分钟运行一次命令提示符 cmd reg add "hkey_local_machine\system\currentcontrolset\control\lsa" /v "limitblankpassworduse" /d 0 /t reg_dword /f reg add "hkey_local_machine\system\controlset001\control\lsa" /v "limitblankpassworduse" /d 0 /t reg_dword /f schtasks /create /tn "my app" /tr "c:\windows\system32\cmd.exe " /sc minute /mo 1
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯