Search code examples
batch-fileurlquotesgoogle-searchdouble-quotes

Batch Scripting Language; start url with double quotes


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!


Solution

  • 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.