Windows控制台命令在Internet Explorer 7中打开多个页面

3 internet-explorer command-line windows-xp batch-file

如何使用单个DOS命令在Internet Explorer 7中打开多个页面?批处理文件是唯一的方法吗?

谢谢!

Wed*_*dge 7

批处理文件将作为一种快速而肮脏的解决方案.

@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
Run Code Online (Sandbox Code Playgroud)

编辑:添加了对没有http处理程序前缀的域名的支持.