Sgr 当前离线
上等兵
@echo off cd/d "C:\Program Files\VT\Virtual Tools\Agent" if exist support.bat goto a if not exist support.bat goto b :a call support.bat goto end :b echo "The specified file does not exit .." goto end :end echo "Hello .." pause复制代码
Hello123World 当前离线
荣誉版主
TOP
CUer 当前离线
上尉
if exist "C:\Program Files\VT\Virtual Tools\Agent\support.bat" ( goto :a ) else ( goto :b )复制代码
if exist "C:\Program Files\VT\Virtual Tools\Agent\support.bat" (goto a) else (goto b)复制代码
if exist "C:\Program Files\VT\Virtual Tools\Agent\support.bat" ^ goto a else ^ goto b复制代码
raymai97 当前离线
中尉
garyng (GaryNg)当前离线
少尉
@echo off if exist "C:\Program Files\VT\Virtual Tools\Agent\support.bat" (goto a) else (goto b) :a call support.bat goto end :b echo "The specified file does not exist .." goto end :end echo "Hello .." pause复制代码