From: Anukul Singhal Date: 2008-03-20T16:01:04+09:00 Subject: Re: Invoking a windows application (e.g notepad) from ruby Siep Korteling wrote: > 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? >> >> Thanks, >> Anukul > > The short way: > > > `notepad` > > Note these are backticks, not single quotes. Ruby will wait until > notepad is finished. If the waiting is not desired, this is an option: > > system("start notepad") > system("calc") > > Possibly you have to provide the full path to the executable. > > Regards, > > Siep ---------------------------------------- Siep, Thanks a lot!! ..Anukul -- Posted via http://www.ruby-forum.com/.