From: Phrogz Date: 2007-01-12T03:50:09+09:00 Subject: Re: Finding path to ruby script argument Matthew Hailstone wrote: > ruby C:\scripts\helloworld.rb > > helloworld.rb: > ---------------------------------------------- > # What can I put here to display the value C:\scripts\ or C:\scripts? > puts $0 > puts _FILE_ There should be two underscores on each side of __FILE__, as the original poster had it.