Advertisement
ArchiveGuy

Search keywords from command line

May 4th, 2018
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.63 KB | None | 0 0
  1. @echo off
  2. set keyword=%1
  3. shift
  4. set query=%1
  5. :ADDSPACES
  6. shift
  7. if "%1"=="" goto %keyword%
  8. set query=%query%%%20%1
  9. goto ADDSPACES
  10. :AMAZON
  11. set url="https://www.amazon.com/s/ref=nb_sb_noss?field-keywords=%query%"
  12. goto SEARCH
  13. :GOOGLE
  14. set url="https://www.google.com/search?q=%query%"
  15. goto SEARCH
  16. :MYANIMELIST
  17. set url="https://myanimelist.net/search/all?q=%query%"
  18. goto SEARCH
  19. :NYAA
  20. set url="https://nyaa.si/?f=0&c=0_0&q=%query%"
  21. goto SEARCH
  22. :VNDB
  23. set url="http://vndb.org/v/all?sq=%query%"
  24. goto SEARCH
  25. :WIKIPEDIA
  26. set url="http://www.wikipedia.org/search-redirect.php?search=%query%&language=en"
  27. :SEARCH
  28. start firefox.exe %url%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement