Code: Select all
@echo off
Cls
Set /p word=
If %word% end with ing goto ing
:ing
Echo ing
Pause
Is it possible to do this? Thanks
Moderator: DosItHelp
Code: Select all
@echo off
Cls
Set /p word=
If %word% end with ing goto ing
:ing
Echo ing
Pause
Code: Select all
@echo off
Cls
set word=&rem
Set /p word=Enter word:
If /I "%word:~-3%"=="ing" goto :ING
goto :EOF
:ing
Echo ing
Pause