批处理-默认浏览器? [英] Batch - Default Browser?
本文介绍了批处理-默认浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用批处理文件在计算机上查找默认浏览器?
Is there a way for using a batch file to find the default browser on my computer?
推荐答案
如果您正在寻找Windows .bat解决方案,则该方法应在Windows 2000及更高版本上适用:
If you're looking for a Windows .bat solution, this should work on Windows 2000 and later:
reg QUERY HKEY_CLASSES_ROOT\htmlfile\shell\open\command /ve
结果(在Windows计算机上)
Result (on my Windows machine)
HKEY_CLASSES_ROOT\htmlfile\shell\open\command
(Default) REG_SZ "C:\Program Files (x86)\Internet Explorer\iexplore.exe" -nohome
有关更多信息,请参见REG.EXE帮助.
See the REG.EXE help for more information:
REG /?
这篇关于批处理-默认浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文