just the local filename
full = '/home/matz/bin/ruby.exe' puts file=File.basename(full) # => 'ruby.exe': just the local filename