草庐IT

browserFix

全部标签

windows - 将批处理脚本或 EXE 设置为 Windows 7 中的默认浏览器

在我的公司,我们必须在IE中测试我们的应用程序,但我更喜欢使用Chrome作为我的默认浏览器。我制作了以下简单的批处理脚本,以尝试在IE中启动与我公司相关的链接,否则在Chrome中启动它。该脚本如下所示,似乎在命令行中运行良好。seturl=%1echo%url%|findstr/icompanyname>nul:if%errorlevel%==1goto:co_not_found:co_found"C:\ProgramFiles\InternetExplorer\iexplore.exe"%url%goto:gensuite_end:co_not_found"C:\ProgramF