Windows Management Shell to open multiple pages in Internet Explorer 7

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

Thank!

+3
source share
4 answers

The 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

Edit: Added support for domain names without the http handler prefix.

+7
source
  • open txt file with the .txt extension
  • Add below line

    • run www.google.com
    • start www.yahoo.com
    • run www.microsoft.com
  • Save the file, select the file rename and change the extension from .txt to .cmd

  • double-click the .cmd file to execute
+4
source

Unfortunately, there is no way to include multiple URLs in command line options. Here is a blog post that describes another (rather confusing) way to do this through Javascript.

+1
source

I downloaded software that does just that. From the command line, open several websites without having to copy, paste VB scripts or batch files, etc. It can be found at http://www.multiwebpageopener.com .

+1
source

Source: https://habr.com/ru/post/1697359/


All Articles