我写了if在Windows中批处理中为什么不执行
@echoonsetDATE=%date:~0,4%-%date:~5,2%-%date:~8,2%if"%DATE%"=="2015-07-22"(gotob)else...
@echo on
set DATE=%date:~0,4%-%date:~5,2%-%date:~8,2%
if "%DATE%"=="2015-07-22" (goto b) else (goto a)
::a
start reset.bat
::b
start 2.jpg
pause 展开
set DATE=%date:~0,4%-%date:~5,2%-%date:~8,2%
if "%DATE%"=="2015-07-22" (goto b) else (goto a)
::a
start reset.bat
::b
start 2.jpg
pause 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询