Windows console command to open multiple pages in Internet Explorer 7
Solution 1
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
Edit: added support for domain names without http handler prefix.
Solution 2
- open a txt file with .txt extension
-
Add the below lines
- start www.google.com
- start www.yahoo.com
- start www.microsoft.com
save the file, select rename on the file and change the extension from .txt to .cmd
- double click the .cmd file to execute
Solution 3
I’ve downloaded the software that does exactly this. From a command line open several websites without having to copy, paste VB scripts or batch files, etc… It’s available at http://www.multiwebpageopener.com.
Solution 4
Unfortunately, there is no way to include multiple URLs as command-line parameters. Here is a a blog post which details another (fairly convoluted) way to do it via Javascript.
4bazel
Updated on June 04, 2022Comments
-
4bazel almost 2 years
I'm programming an app on ios with xcode and I after a lot of work I found out that the functionality is really dependant on the accuracy of the methods calls. Calling them one line after the other in the code doesn't help, they're still called at up tp 150 ms difference after each other. So I need to make two methods run at the minimal time difference, hence "at the same time". These two tasks I'm performing are actually audio and video ones so I understand it might include also in-process latency and delays, so I was wondering maybe you guys would have any isight on how to sync an audio task and a video task so that they start running together, with a very tiny time gap. I tried using dispatch queues and stuff like that, but they don't work.
I'll be happy to elaborate if I wasn't clear enough. Thanks!
-
deleted_user over 11 yearsGCD dispatch is not meant to be used to sync audio and video
-
deleted_user over 11 yearsApple has APIs specifically to do this. Read them.
-
-
Admin over 15 yearsThis works well. Full URLs must be specified parameters: stackoverflow.com doesn't work while stackoverflow.com works.
-
GargantuChet over 11 yearsSince you've just provided a batch file, this response doesn't answer the question of whether a batch file is the only way.
-
user66001 over 10 years+1 for a alternative to the longer batch file above. Also for a solution that doesn't require a
cmd.exe
window showing -
user66001 over 10 yearsSee the answer (currently) below for a solution that doesn't require a
cmd.exe
window appearing.