From: Anukul Singhal Date: 2008-03-20T16:02:02+09:00 Subject: Re: Invoking a windows application (e.g notepad) from ruby Jano Svitok wrote: > On Wed, Mar 19, 2008 at 11:42 PM, Anukul Singhal > wrote: >> Hi, >> >> I wanted to know if there is any utility present in ruby through which >> we can invoke an external windows app (notepad.exe) or any exe. >> >> Can anyone please help me with the relevant code in ruby which can do >> so? > > if you want to wait until the program finishes: > system "notepad" > if you don't want: > system "start notepad" > > see also Kernel#` > > note that if you need to quote the program name, you have to add > another pair of quotes, because start > threats the first quoted string as window title. > > system 'start "" "C:\Program Files\whaterver.exe"' --------------------------------------- Jano, thanks a lot! ..Anukul -- Posted via http://www.ruby-forum.com/.