Windows控制台命令来在Internet Explorer 7中打开多个页面 [英] Windows console command to open multiple pages in Internet Explorer 7

查看:269
本文介绍了Windows控制台命令来在Internet Explorer 7中打开多个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何打开Internet Explorer 7中的多个页面用一个DOS命令?是一个批处理文件来做到这一点的唯一途径?

How do I open multiple pages in Internet Explorer 7 with a single DOS command? Is a batch file the only way to do this?

谢谢!

推荐答案

一个批处理文件将作为一个快速和肮脏的解决方案。

A batch file will work as a quick and dirty solution.

@echo off
@setlocal

:openurl
set url=%~1

if "%url:~0,4%" == "http" (
   start "%ProgramFiles%\Internet Explorer\iexplore.exe" "%url%"
)
if NOT "%url:~0,4%" == "http" (
   start "%ProgramFiles%\Internet Explorer\iexplore.exe" "http://%url%"
)

shift
if "%~1" == "" goto :end
goto :openurl

:end

编辑:为域名添加不支持HTTP处理程序preFIX

added support for domain names without http handler prefix.

这篇关于Windows控制台命令来在Internet Explorer 7中打开多个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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