You are not logged in.

#1 30 Mar 2007 16:18

redoix
Member
Registered: 30 Mar 2007
Posts: 2

LIMITING INSTANCES OF INTERNET EXPLORER

Sometimes there are too many instances of the internet browser opened on the client's PC. This slows down the connection speed in my local network. How do I limit the number of internet explorer that can run simultaneously such that, when the limit is reached, attempt at opening additional explorer will instead display a window mesage to close one before opening another.

Offline

#2 31 Mar 2007 00:38

bluesxman
Member
From: UK
Registered: 29 Dec 2006
Posts: 1,129

Re: LIMITING INSTANCES OF INTERNET EXPLORER

You could create a launcher along these lines and change their shortcuts so that they run the script rather than IE.

@echo off

set count=0
set max=5

for /f "usebackq tokens=*" %%a in (`tasklist ^| find /c /i "iexplore.exe"`) do set count=%%a

if %count% GTR %max% (echo:You have too many copies of Internet Explorer open already.  Please close some.&pause) ELSE (start "" "c:\Program Files\Internet Explorer\iexplore.exe" %*)

But keep in mind that you can spawn multiple windows from a single iexplore.exe process.


cmd | *sh | ruby | chef

Offline

Board footer

Powered by