From: Arup Rakshit Date: 2013-02-01T19:49:17+09:00 Subject: Re: Save a file by clicking on a link Joel Pearson wrote in post #1094713: > Almost everything can be done differently. You just have to tailor the > code to suit your way of thinking and your specific task. > As for the "best" way to do something, that will always depend on your > objectives - Do you want it... easy to make, easy to use, easy to > expand, immutable, versatile, limited, fast to run, intelligent enough > to correct user errors, etc. > > This is why we "play" with code. It's the way you'll discover new > things, sometimes approaches no one else has ever thought of :) OMG! Still not working. Dir.chdir("C:/Documents and Settings/rakshiar/My Documents/userdata/Rubydownloads") do until Dir.glob('**/*.part*')[0] != [] sleep 0.1 #puts "h" end Any better solution? It seems this couldn't stop the execution of next line,until the download finished. I also have seen that,during download of the file - "Christopher Herman BR.bmp" , two target folders created. The file size is 1.02 MB. -- Posted via http://www.ruby-forum.com/.