Felipe Navas wrote: > 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" YOUR_DIR="C:\\projeto\\blablabla\n" `cd #{YOUR_DIR}` => "C:\\projeto\\blablabla\n" YOUR_DIR="C:\\projeto" `cd #{YOUR_DIR}` > => "C:\\projeto\n" -- Posted via http://www.ruby-forum.com/.