Daniel Berger
12/21/2007 10:23:00 PM
On Dec 21, 2:23=A0am, Al Og <arka...@gmail.com> wrote:
> Hello everyone,
>
> I'm launching external application from my ruby script
> using %x{application_name}
>
> I want to check if such application exists before launching.
> To check it on linux I can parse "which application_name" command
> output.
>
> But what about windows platform? Is there any crossplatform solution
> exists?
require 'ptools'
File.which('ruby')
Yep, works on Windows.
Regards,
Dan