Advertisement
xzlui

Google Search Script

Aug 20th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.56 KB | None | 0 0
  1. @echo off
  2. title "/search" to start search
  3. setlocal enabledelayedexpansion
  4. color 0a
  5. mode 300, 100
  6.  
  7. :s_init
  8. cls
  9. set c=1
  10.  
  11. :input
  12. set /p in=Keyword %c%:
  13. if "%in:~0,1%" == "{" set c=1
  14. if "%in%" == "/search" goto mk_link
  15. echo %in%>>input.txt
  16. set /a c=%c% + 1
  17. goto input
  18.  
  19. :mk_link
  20. set content=
  21. for /F "delims=" %%i in (input.txt) do set content=!content!^+%%i
  22. set engine0=https://www.google.com/#q=
  23. set link0=%engine0%%content%
  24. goto search
  25.  
  26. :search
  27. start chrome %link0% && del input.txt && endlocal && exit
  28. start %link0% && del input.txt && endlocal && exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement