Kill Popup

Close all Internet Explorer windows that are opened from another one

Run it under cscript (^C to terminate) or wscript (end task to terminate)
No website will be abble to popup an advertisement window.

File Name : killpopup.vbs
Requirement : Internet Explorer
Author : Jean-Luc Antoine
Submitted : 25/08/2001
Category : 4K
Dim J,L
'Known bug : don't do right click on an IE icon in the taskbar, it freezes
Set J=CreateObject("Shell.Application")
on error resume next
Do
	WScript.Sleep 2000
	if instr(ucase(wscript.fullname),"CSCRIPT") Then wscript.echo Now
	For L=0 to J.windows.count-1
		With J.windows.item(L)
			If IsObject(.document.frames) Then
				If Not isObject(.document.frames.opener) Then
					rem Copyright 2001 Jean-Luc Antoine
				Else
					.document.frames.close
				End if
			End If
		End With
	Next
Loop
Server Info
Remote Info
Compress

Batchs
BootSector
Droit
Accessoire GFA
On Now
Ecran plasma
Système d'exploitation
Son
Unités
Scripting
Multilingue
Site Web
Bruit et son
Architecture Google


4K
Color picker
TaskList
Backup files
Mini Port Scanner
Website To CHM
PixyDemo
Web password recovery
4KWebServer
Kill Popup
VBE decoder
Script Optimizer
Database Password Recovery
Class
Ini
EMail validator
Graphical Class
MP3 Info
Pinger Class
IP ranger class
SoftwareMetering
Path Validator
Time Stamper Class
LoggerCLS
HTA
Keyword Ranking
DOM Explorer
HTA-Notepad
PixyPortManager
Other
flashMessage
Kill Popup
VBE decoder (fixed)
Error Codes
Maze generator
Char counter
HTML To Word
ICQ Choose User
ScreenSaver Password decoder
Mp3Playlister - singleList
Long Filename To Short
Trace Math
Dump Hexa File
Self modifying script
Mp3Playlister - multiList
HTANoid
PixyWebServer
Python
Progress indication

©2002 Jean-Luc Antoine. All Rights Reserved. Scripts or any other material on this website may not be redistributed or put as part of ANY collection (script archives, CDs etc) without prior written permission. Permission granted to use and modify any of the scripts found on InterClasse.com