From: Tim Heaney Date: 2003-04-27T06:50:46+09:00 Subject: Re: How do I change directories? Daniel Carrera writes: > > How do I change directory from a Ruby program? > > I tried 'system("cd #{dir}")' but it didn't work. Ruby has its own chdir; you don't have to ask the system to cd. puts Dir.getwd Dir.chdir(dir) puts Dir.getwd I hope this helps, Tim