From: "Peña, Botp" Date: 2008-05-19T11:16:14+09:00 Subject: Re: defining a variable from the command prompt # sendemail.rb "this is my message" faq. research on ARGV eg, C:\family\ruby>cat test.rb msg = ARGV[0] || "using default" puts msg C:\family\ruby>test.rb using default C:\family\ruby>test.rb "this is a test" this is a test kind regards -botp