从.bat / .vbs启动没有URL的默认Windows浏览器? [英] Launch default Windows browser without URL from .bat/.vbs?

查看:216
本文介绍了从.bat / .vbs启动没有URL的默认Windows浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要能够启动默认的Windows浏览器,而不指定< g class =" gr_ gr_8 gr-alert gr_gramm gr_run_anim gr_inline_cards Grammar multiReplace"数据-GR-ID =" 8英寸id =" 8">一个网址< / g> (应该打开用户的主页
页面)。解决方案最好不要求编译二进制文件(例如.bat,.vbs等)。它也适用于Win7 +到Win10而不安装任何< g class =" gr_ gr_17 gr-alert gr_gramm gr_run_anim gr_inline_cards标点符号
only-del replaceWithoutSep"数据-GR-ID =" 17" ID = QUOT; 17">软件,< / g取代;没有管理员权限。



我见过的解决方案指定< g class =" gr_ gr_24 gr-alert gr_gramm gr_run_anim gr_inline_cards Grammar multiReplace"数据-GR-ID =" 24英寸; id =" 24">一个网址(li< / g> ke`开始http:// www.google.com`,但这对我来说不起作用
,因为它指定要打开的页面。是这可能吗?谢谢

解决方案

嗨Isaac Hanson,


感谢您在此处发帖。


>>"应该打开到用户的主页...因为它指定要打开的页面  "


根据我的搜索,您无法使用C#或C ++获取当前主页。您需要在开发应用程序时指定URL。   ;



WebBrowser
控件为空。要将其导航到初始文档,请设置
Url
属性。


As据我所知,这是不同的获得主页网址。


最好的问候,


Hart



I need to be able to launch the default Windows browser, without specifying <g class="gr_ gr_8 gr-alert gr_gramm gr_run_anim gr_inline_cards Grammar multiReplace" data-gr-id="8" id="8">a URL</g> (should open to user's home page). The solution should preferably not require compiling a binary (so a .bat, .vbs, or the like). It should also work on Win7+ through Win10 without installing any <g class="gr_ gr_17 gr-alert gr_gramm gr_run_anim gr_inline_cards Punctuation only-del replaceWithoutSep" data-gr-id="17" id="17">software,</g> and without admin rights.

I have seen solutions that specify <g class="gr_ gr_24 gr-alert gr_gramm gr_run_anim gr_inline_cards Grammar multiReplace" data-gr-id="24" id="24">a URL (li</g>ke `start http://www.google.com`, but that will not work for me because it specifies the page to open. Is this possible? Thanks

解决方案

Hi Isaac Hanson,

Thank you for posting here.

>>" should open to user's home page ... because it specifies the page to open  "

Based on my search, you cannot get the current home page by using C# or C++.  you need to specify the URL, when you developed application. 

The WebBrowser control is empty. To navigate it to an initial document, set the Url property.

As far as I know, it is difficult to get home page url.

Best Regards,

Hart


这篇关于从.bat / .vbs启动没有URL的默认Windows浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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