From: Matt Todd Date: 2006-08-06T10:59:14+09:00 Subject: Re: uploading local file into text_field using watir If you mean looping through them all, then you could just wrap it all up in a little iteration block, like so: 1.upto(number_of_emails) do |num| # your upload code # use $Path = "c:\path\to\email#{num}guide.htm" to set the right name end Check out the documentation for Int and other enumerables if you're confused. http://rubycentral.com/ref/ref_c_integer.html#upto If you've not purchased it yet, do get Programming Ruby from the Pragmatic Programmers. It's the definitive reference and learning resource for Ruby. Plus, if you're feeling spunky enough, read _Why The Lucky Stiff's Poignant Guide, http://www.poignantguide.net/ which is a bit wacky, but is still an excellent introduction to the language. M.T.