Matthew John wrote: > Hi All, > > How do I find out which directory my ruby script was run from? Maybe Dir.getwd? ------------------------------------------------------------- Dir::getwd Dir.getwd => string Dir.pwd => string ------------------------------------------------------------------------ Returns the path to the current working directory of this process as a string. Dir.chdir("/tmp") #=> 0 Dir.getwd #=> "/tmp" -- Posted via http://www.ruby-forum.com/.