使用cmd提示在Google或其他搜索引擎上搜索字词 [英] Use cmd prompt to search a word on google or other search engine

查看:286
本文介绍了使用cmd提示在Google或其他搜索引擎上搜索字词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用编程语言搜索 google或其他指定的搜索引擎。我想使用Windows cmd提示来这样做,因为指定的编程语言有一个简单的命令来访问cmd提示符。

I am trying to use a programming language to search google or another specified search engine. I would like to use windows cmd prompt to do so because the specified programming language has a simple command to access the cmd prompt.

有关如何从cmd提示搜索google的任何想法?

Any ideas on how to search google from cmd prompt?

推荐答案

我创建了一个批处理文件'g.bat'并将其添加到我的PATH。它看起来像这样:

I created a Batch file 'g.bat' and added it to my PATH. It looks like this:

start www.google.co.uk/search?q=%1+%2+%3+%4+%5

最多可支持5个​​字(当然可以添加更多)。现在我可以从CMD搜索或开始输入g query

Supports up to 5 words (of course you can add more). Now I can search from CMD or start by typing "g query"

编辑:信用到mrt的灵感

Credit to mrt for the inspiration

这篇关于使用cmd提示在Google或其他搜索引擎上搜索字词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆