From: Zach Dennis Date: 2005-09-01T09:46:05+09:00 Subject: Re: Ruby and WSH How? Takashi Sano wrote: > Hello Andres, > > 2005/9/1, Andres M. Hidalgo : > >>Any ideas or links to Ruby and WSH(Windows Scripting Host)? >>Can I use Ruby with .HTA(HTML for applications)?. I have used Ruby and WSH. It is beautiful. Documentation is sparse, so trial and error is a must, although it is really straightforward stuff once you get used to it. Use Win32OLE to access WSH... Example: require 'win32ole' wscript_shell = WIN32OLE.new( 'WScript.Shell' ) wscript_shell.Popup( 'message', 0, 'title', 1 ) Most WSH commands are executed just like you would execute them in VBScript... Here is an examle of how to get system drive information: require 'win32ole' drives = [] file_system = WIN32OLE.new( 'Scripting.FileSystemObject' ) file_system.Drives.each { |drv| drives << drv.DriveLetter } drives If you want any more hardcore examples I'll see what I can dig up! Zach