From: Gavin Kistner Date: 2005-05-18T14:02:37+09:00 Subject: Re: ruby in WinXP as an automation tool --Apple-Mail-2-646401628 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On May 17, 2005, at 10:53 PM, Gavin Kistner wrote: > (Suggestions on cleaner ways to do things are welcome; I really > don't understand OLE at all, or the WMI service. Although I did > find this list[1] of properties which you can access on the > processes returned by the InstancesOf call.) Ooh, and I just found this url[2] which links to some tasty scripts showing how to use WMI to automate all sorts of tasks on Windows. (The examples are in VBScript, but I think that it should be relatively easy to directly port them to Ruby, given the code I already supplied. And possibly this page[3]) [2] http://msdn.microsoft.com/library/en-us/wmisdk/wmi/ wmi_tasks_for_scripts_and_applications.asp [3] http://msdn.microsoft.com/library/en-us/wmisdk/wmi/swbemservices.asp --Apple-Mail-2-646401628--