Why does bot search wrongly?

November 20, 2020 at 06:52:54
Specs: Windows 10
Me: search Tom
bot goes to http://google.com/search?q=search where it should go to http://google.com/search?q=Tom.

So, Where is the error in the code?:

echo %input%|find /i "search" >nul && set input=%input:search =% && echo opening Website Google! && start http://google.com/search?q=%input%


See More: Why does bot search wrongly?


#1
November 20, 2020 at 20:24:01
You never said where, or how, you obtained %input%..
My best guess is you need something like:

@echo off & setlocal enabledelayedexpansion
set input=%*
echo %input%|find /i "search" >nul && set input=!input:search =! && echo opening Website Google to look for "!input!"&&start http://google.com/search?q=!input!



Reply ↓  Report •

#2
November 21, 2020 at 03:49:29
.bat search bot not working yet. I am waiting for more responses from other people.

Reply ↓  Report •
Related Solutions


Ask Question