Re: How to compare two substrings or measure their length
Posted: 11 Jan 2012 11:14
We used to add :EOF support, by explicit labelingdbenham wrote:The purpose of SETLOCAL DisableExtensions is to put CMD.EXE into a mode where it attempts to be compatible with the old COMMAND.COM, which did not support GOTO :EOF or EXIT /B. (Among other things)
Code: Select all
@echo off &setlocal disableExtensions
goto :EOF
echo.oopsy
:EOF as label compatible with all Windows OS, must be last block in batch !
echo.lucky luke.
pause
exit
Code: Select all
lucky luke.
Druk op een toets om door te gaan. . .