I'm trying to figure out if a string starts with a substring :
rem GetInput
if "%result%"=="cd *" goto Cd
:Cd
if "%result%"=="cd meow" Echo Going to directory 'meow'...
Unfortunately this not looping back to :Cd when it should. How can I detect if th string starts with cd ?