如何使用cmd打开URL? [英] How to open a URL with cmd?

查看:416
本文介绍了如何使用cmd打开URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经知道要使用您使用的默认浏览器打开网页:启动 www.google.com .但是,我正在尝试打开一个包含'&'的URL.例如:

I already know that to open a webpage with the default browser you use: start www.google.com. However, I'm trying to open a URL that contains a '&' in it for example:

https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world

如果我使用:

start https://www.google.dz/?gws_rd=cr,ssl&ei=rXc_WYq3Msy2abGXpugH#safe=off&q=hello+world

由于存在&

推荐答案

& 是批处理的特殊字符,因此,如果URL包含特殊字符,您只需要这样做:/p>

& is a special caractere in batch so if the URL contains a special caractere you just have to do it like this:

start "" "your url" 

这篇关于如何使用cmd打开URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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