From: Sak Na rede Date: 2008-11-30T07:05:34+09:00 Subject: Re: Most used pwd in ruby Marc Heiler wrote: >> Dir.chdir("complete_path") > > It works, but I think it is not a perfect approach. What is better is > to, IMHO, work with absolute paths as much as possible. Ruby on windows > seems to happily accept "/foo/bla" locations so there really is not work > involved for my scripts when I use them on my windows machine (which is > mostly turned off these days) > > Aside from that I guess most people here will use relative paths. I'm working in unix system and my scripts will always run in unix but it's a very important know that. Thanks Thanks Matthias and robert, very simple and very helpful, perfect! -- Posted via http://www.ruby-forum.com/.