C:\projeto>irb irb(main):001:0> `cd` => "C:\\projeto\n" How i change the path that the command will be executed ? What must happen: C:\projeto>irb irb(main):001:0> YOUR_MAGIC_COMMAND("C:\\projeto\\blablabla") irb(main):002:0> `cd` => "C:\\projeto\\blablabla\n" -- (.) CAMPANHA DA FITA ASCII ( http://arc.pasp.de/) / \ Contra formatos proprietarios