-1

I am trying to write a batch script that starts a google search for e.g "Sun Moon Lake" in double quotes. However, the double quotes are not appearing.

My script is as follows :

@echo off
start https://www.google.com/search?q="Sun+moon+lake"

Search bar not showing double quotes

Thanks!

Compo
  • 36,585
  • 5
  • 27
  • 39
  • 2
    Try `start "Window Title" https...` `start` assumes the first `"quoted string"` in the parameters is a window-title. – Magoo Feb 05 '21 at 03:16
  • 1
    I would suggest, from a batch-file: `@Start "" "https://www.google.com/search?q=%%22Sun+moon+lake%%22"`, or from cmd: `Start "" "https://www.google.com/search?q=%22Sun+moon+lake%22"` – Compo Feb 05 '21 at 11:24
  • Awesome guys! The recommendations worked perfectly, thanks!! – flash22231 Feb 10 '21 at 02:44

1 Answers1

0

Try start "Window Title" https... start assumes the first "quoted string" in the parameters is a window-title. – Magoo

I would suggest, from a batch-file: @Start "" "https://www.google.com/search?q=%%22Sun+moon+lake%%22", or from cmd: Start "" "https://www.google.com/search?q=%22Sun+moon+lake%22" – Compo

The above works fine and I want to put a closure to this question.