[newbie] windows renaming

Hello,

i’m beginning to use Ruby, but i can’t find examples of renaming with
the Dir class.

I’ve tried a code lign like this :

Dir.glob(“C:\Documents?and?Settings\NET?DESIGN\Mes?documents\Mes?images\*”)
{ |name| copy #{name} #{name.sub(/cadre/, "alias_")}}

but nothing happens.

  1. Is my url correct ?
  2. how can i give orders to my windows ?

Thanks for your answers

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs