Note the quotes in this if
compare which protects against spaces and other characters.
if /i "%SC%"=="BACK" goto Menu
You can use this code below and the if
will branch when enter alone
is pressed, otherwise the search will be performed, and the SC
variable replace with +
will happen without a separate line.
set "sc="
set /p "SC=Search Criteria: "
if not defined SC goto menu
start "" /b "C:\Program Files\InternetExplorer\iexplore.exe" "http://www.google.com/search?q=%SC: =+%"
pause