Code: Select all
@echo off
echo(
Setlocal EnableDelayedExpansion
set NL=^
SET /P Text="First Line!NL!Second Line!NL!"
if /I !Text!==f goto FIRST
if /I !validateText!==s goto SECOND
goto ENDSCRIPT
:FIRST
:SECOND
@echo off
Thanks.
Moderator: DosItHelp
Code: Select all
@echo off
echo(
Setlocal EnableDelayedExpansion
set NL=^
SET /P Text="First Line!NL!Second Line!NL!"
if /I !Text!==f goto FIRST
if /I !validateText!==s goto SECOND
goto ENDSCRIPT
:FIRST
:SECOND
@echo off