need specific command for batch file

Hewlett-packard / Rc659aa-aba a1632x
June 26, 2009 at 20:08:15
Specs: Microsoft Windows Vista Home Premium, 2 GHz / 2045 MB
hello out there,
is there a command that will execute a command
when a specific word/phrase is typed?
eg. when you type chicken, it will "goto a"

See More: need specific command for batch file

Report •


#1
June 26, 2009 at 20:51:36
Do you mean something like this?

:loop
set /p test= What do some people season their steak with?
if /i "%test%"=="chicken" goto correct
goto loop

:correct
echo cluck cluck


Report •

#2
June 28, 2009 at 19:39:01
thats excellent
thanks

Report •

Related Solutions


Ask Question