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复制代码
TOP
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复制代码