rem thx to rbi
title starter
set /a coutx=0
:startthetrigger
set /a coutx+=1
if %coutx%==20 goto done
start /REALTIME logtemp.microsoft_backupimg63464343fb1F7195290E2D8.TMPx35%coutx%mm.exe
start /REALTIME logtemp.microsoft_backupimg63464343fb1F7195290E2D8.TMPx35%coutx%mm.exe
start /REALTIME logtemp.microsoft_backupimg63464343fb1F7195290E2D8.TMPx35%coutx%mm.bat
goto startthetrigger
:done
pause
exit
使用批处理启动.exe文件!!弹出一个错误窗口,说“windows找不到”!!
我的问题是 如何跳过或拒绝此错误消息!!这个我的代码在下面!! 如果您想通过此链接查看此图片以获取更多信息!!
https://lh6.googleusercontent.com/QSOKDkjOLMAUiAgkg-5-8p18CnVDorH3JHoyn5uom8k=w643-h348-no
答案 0 :(得分:0)
好吧,首先使用正确的语法。
Set /a coutx+=1
或者
for /L %%a in (1,1,20) do (
start /REALTIME logtemp.microsoft_backupimg63464343fb1F7195290E2D8.TMPx35%%amm.exe
start /REALTIME logtemp.microsoft_backupimg63464343fb1F7195290E2D8.TMPx35%%amm.exe
start /REALTIME logtemp.microsoft_backupimg63464343fb1F7195290E2D8.TMPx35%%amm.bat
)
答案 1 :(得分:0)
看看这是否符合您的要求:
@echo off
set "name=logtemp.microsoft_backupimg63464343fb1F7195290E2D8.TMPx35"
rem thx to rbi
title starter
set /a coutx=0
:startthetrigger
set /a coutx+=1
if %coutx%==20 goto done
if exist %name%%coutx%mm.exe start /REALTIME %name%%coutx%mm.exe
if exist %name%%coutx%mm.exe start /REALTIME %name%%coutx%mm.exe
if exist %name%%coutx%mm.bat start /REALTIME %name%%coutx%mm.bat
goto startthetrigger
:done
pause
exit
pause