From: nobu.nokada@... Date: 2002-06-01T13:14:08+09:00 Subject: Re: changing current directory Hi, At Fri, 31 May 2002 18:35:50 +0900, MENON Jean-Francois wrote: > is there a way to change the current directory into my ruby program so > that all the commands run with "system" will find files in current > directory ? (both with Linux and Windows?) I'm not sure what you really want, `into my ruby program' means changing into the directory of the script? Dir.chdir(File.dirname($0)) # change to invoked # script's directory or Dir.chdir(File.dirname(__FILE__)) # to current script's. -- Nobu Nakada