From: Matthew Hailstone Date: 2007-01-12T03:29:33+09:00 Subject: Finding path to ruby script argument When I execute a ruby script by the following: ruby helloworld.rb onlyarg How can I find what equals? For example, in Windows, ruby C:\scripts\helloworld.rb onlyarg helloworld.rb: ---------------------------------------------- # What can I put here to display the value C:\scripts\ or C:\scripts? puts ARGV[0] ---------------------------------------------- output: ---------------------------------------------- onlyarg ---------------------------------------------- Thanks! Matthew