You are not logged in.
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
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