Unfortunately, I do not think Windows Explorer (the file and folder
manager as opposed to web browser) hosts a COM server and object model.
It can be automated to some extent by sending messages to its child
windows, but that is a complex and less reliable approach than the COM
automation that is possible with Internet Explorer, Word, or Excel.
Jamal
···
-----Original Message-----
From: list-bounce@example.com [mailto:list-bounce@example.com] On Behalf
Of yeungsprite
Sent: Tuesday, April 25, 2006 3:05 PM
To: ruby-talk ML
Subject: win32ole
Hello, I am new to Ruby and Windows programming and have a question
regarding the WIN32OLE. The following sample code is used to launch MS
Internet Explorer.
require 'win32ole'
ie = WIN32OLE.new('InternetExplorer.Application')
ie.visible = true
ie.gohome
What I would like to do is launch MS Windows Explorer (file manager /
Windows GUI Shell) and determine the functions to call to traverse it
(ie expand branches, open files, etc) for automation purposes.
Can anyone suggest resources on how to accomplish this?
Thanks very much!
--
Posted via http://www.ruby-forum.com/.