# Full paths of Ruby interpreter and running script

**URL:** <https://www.ruby-forum.com/t/full-paths-of-ruby-interpreter-and-running-script/93985>\
**Category:** Ruby\
**Created:** [April 17, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/full-paths-of-ruby-interpreter-and-running-script/93985 "2006-04-17T17:54:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Post date:** [April 17, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/full-paths-of-ruby-interpreter-and-running-script/93985/1 "2006-04-17T17:54:41Z")

</div>

I’ve looked through and experimented with predefined global constants,  
but so far have not figured how to get the full path and name of the  
Ruby interpreter and/or main script file from within a running program.  
I want to distribute a program that can be installed in a folder chosen  
by the user. The program would save configuration information in the  
same folder. In order to find the configuration file at runtime, I  
thought I would query the full path of the Ruby interpreter or script  
file. In case it makes a difference, I’m using Windows.

Jamal
