【发布时间】:2021-05-09 10:15:53
【问题描述】:
我正在尝试编写一个批处理脚本来启动谷歌搜索,例如双引号中的“日月潭”。 但是,双引号没有出现。
我的脚本如下:
@echo off
start https://www.google.com/search?q="Sun+moon+lake"
谢谢!
【问题讨论】:
-
尝试
start "Window Title" https...start假定参数中的第一个"quoted string"是窗口标题。 -
我建议,从批处理文件:
@Start "" "https://www.google.com/search?q=%%22Sun+moon+lake%%22",或从 cmd:Start "" "https://www.google.com/search?q=%22Sun+moon+lake%22" -
太棒了!这些建议效果很好,谢谢!!
标签: batch-file url quotes google-search double-quotes