[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

···

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