求助,批处理文件编辑!

来源:百度知道 编辑:UC知道 时间:2024/06/15 22:41:29
start abc.exe 原批处理文件这个,文件是添加到开机运行里面了。每次开机直接运行。

求种 10 秒后运行 abc.exe 的编写方法。 谢谢

添加一句命令就行了,具有延时功能:
ping /n 1000 127.0.0.1>nul
还有建议你的开机运行的批处理设置成隐藏窗口功能,就是在后台运行,运行完毕自动退出。
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
ping /n 1000 127.0.0.1>nul
start abc.exe
exit

ping /n 10 127.0.0.1>nul
start abc.exe

网上很多,搜搜白,www.yesky.com