From: Ronald Fischer Date: 2007-07-27T18:41:06+09:00 Subject: Getting Ruby Path at runtime? Is it possible to find out under Windows, which Ruby has been used to run a program? Example: A program is invoked by C:\inst\ruby186\bin\ruby.exe appl.rb Is it then possible to find out inside appl.rb the whole path C:\inst\ruby186\bin\ruby.exe ? If not, is it at least possible to find out - the Ruby version (1.8.6) and - whether it is executed by Ruby or JRuby? Ronald -- Ronald Fischer Phone: +49-89-452133-162