
定时运行程序 bat
我想要一个程序在每10分钟-20分钟让他自己启动一次谁给我写一个bat文件或者VBS文件记住我只要bat的其他的任务计划或者是辅助软件我都不需要我已经自己研究出来了谢谢你...
我想要一个程序 在 每10分钟-20分钟 让他自己启动一次 谁给我写一个 bat 文件 或者VBS 文件
记住 我只要 bat的 其他的任务计划 或者是 辅助软件 我都不需要
我已经自己研究出来了 谢谢你们 代码如下
@echo off
if "%1"=="h" goto begin
mshta vbscript:createobject("wscript.shell").run(""%0"h",0)(window.close)&exit
:begin
ping -n 6 127.1
>%temp%\t00tt.vbs echo wscript.sleep 30
for /l %%i in (1,1,4) do %temp%\t00tt.vbs
cd /d "D:\我的文档\KeyFreeze_S"
start setup.exe
:1
ping 127.0.0.1 -n 600>nul
call "setup.exe"
goto 1
del %temp%\t00tt.vbs 展开
记住 我只要 bat的 其他的任务计划 或者是 辅助软件 我都不需要
我已经自己研究出来了 谢谢你们 代码如下
@echo off
if "%1"=="h" goto begin
mshta vbscript:createobject("wscript.shell").run(""%0"h",0)(window.close)&exit
:begin
ping -n 6 127.1
>%temp%\t00tt.vbs echo wscript.sleep 30
for /l %%i in (1,1,4) do %temp%\t00tt.vbs
cd /d "D:\我的文档\KeyFreeze_S"
start setup.exe
:1
ping 127.0.0.1 -n 600>nul
call "setup.exe"
goto 1
del %temp%\t00tt.vbs 展开
3个回答
展开全部
这个简单得很,使用批处理的Goto循环就可以做到!~
例如以下代码:
@echo off
:Begin
Start 这里输入你要定时启动的程序的路径(路径含有空格的话需要把路径用引号 " " 括起来)
rem 下面这行是延时代码,300是秒做单位的,300秒就是5分钟,需要多长时间自改一下
@Ping 127.0.0.1 -n 300
Goto Begin
例如以下代码:
@echo off
:Begin
Start 这里输入你要定时启动的程序的路径(路径含有空格的话需要把路径用引号 " " 括起来)
rem 下面这行是延时代码,300是秒做单位的,300秒就是5分钟,需要多长时间自改一下
@Ping 127.0.0.1 -n 300
Goto Begin
展开全部
@echo off
if "%1"=="h" goto begin
mshta vbscript:createobject("wscript.shell").run(""%0"h",0)(window.close)&exit
:begin
ping -n 6 127.1
>%temp%\t00tt.vbs echo wscript.sleep 30
for /l %%i in (1,1,4) do %temp%\t00tt.vbs
cd /d "D:\我的文档\KeyFreeze_S"
start setup.exe
:1
ping 127.0.0.1 -n 600>nul
call "setup.exe"
goto 1
del %temp%\t00tt.vbs
if "%1"=="h" goto begin
mshta vbscript:createobject("wscript.shell").run(""%0"h",0)(window.close)&exit
:begin
ping -n 6 127.1
>%temp%\t00tt.vbs echo wscript.sleep 30
for /l %%i in (1,1,4) do %temp%\t00tt.vbs
cd /d "D:\我的文档\KeyFreeze_S"
start setup.exe
:1
ping 127.0.0.1 -n 600>nul
call "setup.exe"
goto 1
del %temp%\t00tt.vbs
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
约15分钟运行一次 abc.exe:
@echo off
:AA
abc.exe
ping -n 900 127.1 >nul
goto AA
@echo off
:AA
abc.exe
ping -n 900 127.1 >nul
goto AA
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询