From: ander882cms@... (Craig J.) Date: 2002-10-31T02:38:06+09:00 Subject: Re: Close Internet Explorer "Bass" wrote in message news:... > Hi, > I've got a problem. I want to close any Internet Explorer Window, even those > ruby didn't open with WIN32OLE. > Does anyone know how to do this? > > thanks here is the code I am using (to only close IE windows that I have opened) require 'win32ole' iefrom = WIN32OLE.new('InternetExplorer.Application') iefrom.visible = true iefrom.navigate "http://www.yahoo.com" #sleep 2 while @iefrom.Busy == true iefrom.quit #this is actually what closes the window.