# Shell.application.windows doesn't contain IE windows

**URL:** <https://rubytalk.org/t/shell-application-windows-doesnt-contain-ie-windows/51995>\
**Category:** ruby-talk\
**Created:** [26 February 2009 13:05 UTC](https://rubytalk.org/t/shell-application-windows-doesnt-contain-ie-windows/51995 "2009-02-26T13:05:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wall\_Lee](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Wall\_Lee](https://rubytalk.org/u/Wall_Lee)\
**Post date:** [26 February 2009 13:05 UTC](https://rubytalk.org/t/shell-application-windows-doesnt-contain-ie-windows/51995/1 "2009-02-26T13:05:13Z")

</div>

Hi,

I found a verty strange thing on my machine: when I run the following  
script, it only shows windows of Explorer, but no internet Explorer  
window, though I do open an IE window:

require 'win32ole'  
shell = WIN32OLE.new('Shell.Application')  
shell.Windows.each do |window|  
&nbsp;&nbsp;&nbsp;&nbsp;puts "file=#{window.FullName}"  
end

the output is:  
file=C:\Windows\Explorer.EXE

expects another ie window like file=c:\program files\Internet  
Explorer\IEXPLORER.EXE.

This make me crazy. Any help will be great appreciated.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Vladimir\_Fekete](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@Vladimir\_Fekete](https://rubytalk.org/u/Vladimir_Fekete)\
**Post date:** [26 February 2009 16:39 UTC](https://rubytalk.org/t/shell-application-windows-doesnt-contain-ie-windows/51995/2 "2009-02-26T16:39:05Z")

</div>

Hi,

&nbsp;&nbsp;afaik, the difference between explorer and iexplorer is in they  
functionality. Explorer is for example that thing which runs when you double  
click on My Computer. The web browser Internet Explorer is based on  
explorer and extends it's functionality. (I guess it's something like  
konqueror in KDE, where konqueror serve as main tool for disk browsing as  
well as web browsing).  
But those 2 applications are 2 different applications hence 2 different  
names.

I hope this answer your problem.

V.

P.S. For example when your task bar dissapear you can run (through  
Ctrl+Shit+ESC) a new instance of explorer.exe and it appears again.

> **···**
>
> On Thu, Feb 26, 2009 at 10:05:13PM +0900, Wall Lee wrote:
> 
> > Hi,
> > 
> > I found a verty strange thing on my machine: when I run the following  
> > script, it only shows windows of Explorer, but no internet Explorer  
> > window, though I do open an IE window:
> > 
> > require 'win32ole'  
> > shell = WIN32OLE.new('Shell.Application')  
> > shell.Windows.each do |window|  
> > &nbsp;&nbsp;&nbsp;&nbsp;puts "file=#{window.FullName}"  
> > end
> > 
> > the output is:  
> > file=C:\Windows\Explorer.EXE
> > 
> > expects another ie window like file=c:\program files\Internet  
> > Explorer\IEXPLORER.EXE.
> > 
> > This make me crazy. Any help will be great appreciated.  
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Wall\_Lee](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Wall\_Lee](https://rubytalk.org/u/Wall_Lee)\
**Post date:** [27 February 2009 04:47 UTC](https://rubytalk.org/t/shell-application-windows-doesnt-contain-ie-windows/51995/3 "2009-02-27T04:47:39Z")

</div>

Vladimir Fekete wrote:

> Hi,
> 
> &nbsp;&nbsp;afaik, the difference between explorer and iexplorer is in they  
> functionality. Explorer is for example that thing which runs when you  
> double  
> click on My Computer. The web browser Internet Explorer is based on  
> explorer and extends it's functionality. (I guess it's something like  
> konqueror in KDE, where konqueror serve as main tool for disk browsing  
> as  
> well as web browsing).  
> But those 2 applications are 2 different applications hence 2 different  
> names.
> 
> I hope this answer your problem.
> 
> V.
> 
> P.S. For example when your task bar dissapear you can run (through  
> Ctrl+Shit+ESC) a new instance of explorer.exe and it appears again.

Yes, they are 2 different applications. But I mean shell ought to find  
these 2 applications all, not only explorer. On my local ruby script, it  
only find explorer application, but in windows taskmanager there are 2  
tasks: explorer and internet explorer. I want to know how can ruby get  
the correct application info on windows 2008.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
