为什么我的程序如果运行到第一个if如果条件为真的时候,总是有The syntax of the command is incorrect.这样的错误
echo Input a file:
set/p INPUTFILE=
if /i "%INPUTFILE%"=="" (
echo 111111111111
set INPUTFILE=Document.txt
goto :END
) else (
echo 222222222222222
if /i not exist %INPUTFILE% (
echo 333333333333
set INPUTFILE=Document.txt
goto :END
)
)
:BEGIN
echo #################
goto :EOF
:END
set INPUTFILE=
echo @@@@@@@@@@@@@@@@@@
echo Input a file:
set/p INPUTFILE=
if /i "%INPUTFILE%"=="" (
echo 111111111111
set INPUTFILE=Document.txt
goto :END
) else (
echo 222222222222222
if /i not exist %INPUTFILE% (
echo 333333333333
set INPUTFILE=Document.txt
goto :END
)
)
:BEGIN
echo #################
goto :EOF
:END
set INPUTFILE=
echo @@@@@@@@@@@@@@@@@@
