I want to get the name of a subdirectory.

Alternative_Plugin_Dir = "C:/ProgramData/Google/SU_Plugins_by_Author/"
Alternative_Plugin_array = Dir[Alternative_Plugin_Dir + "*"]
Alternative_Plugin_array.each do |x|
  p x
  p Alternative_Plugin_Dir
  p x.scan(/\'#{Alternative_Plugin_Dir}'\S*/)  # This returns: `[]`
end

-- 
Posted via http://www.ruby-forum.com/.