From: David Mullet Date: 2008-01-27T11:45:37+09:00 Subject: Re: win32ole.AppActivate broken in VISTA? Robert Batzinger wrote: > I have been trying to use the win32ole module on Vista. However, the > AppActivate method always fails regardless of whether simple or > root-relative address are used in the following program. The module > appears to be working well on all other versions of Windows. Does > anyone know the fix to this? > > require 'win32ole' > wsh = WIN32OLE.new('Wscript.Shell') > if wsh.AppActivate('notepad') > print 'Success' > else > print 'Fail' > end > > BTW Just typing the word notepad works at the DOS prompt and the > WIN32OLE does open the OLE object > > ================ > Bob Batzinger > Arkfriends > South Bend, Indiana Bob- For what it's worth, your code works for me using Ruby 1.8.6 on Windows Vista Home Premium. David http://rubyonwindows.blogspot.com -- Posted via http://www.ruby-forum.com/.