My code is:
@ECHO OFF
IF EXIST D:\TestCMD\1.TXT GOTO 1
ELSE
ECHO NOT EXISTED FILE 1.TXT
:1
ECHO EXISTED 1.TXT
--> It work nomally but when i changed "1.txt" to "2.txt" --> It doesn't work and error: "else is not recognized as an internal or external command, operable program or batch file."
@ECHO OFF
IF EXIST D:\TestCMD\2.TXT GOTO 1
ELSE
ECHO NOT EXISTED FILE 1.TXT
:1
ECHO EXISTED 1.TXT
--> What's happen?