From: Dennis Newbold Date: 2002-06-01T06:04:20+09:00 Subject: Re: changing current directory On Fri, 31 May 2002, Erik [ISO-8859-1] B�gfors wrote: > On Fri, 2002-05-31 at 11:35, MENON Jean-Francois wrote: > > hello, > > 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?) > > -- > Try Dir.chdir("new_directory_name") It will probably work OK on Windows, but I haven't tried it. -dln- > : [bagfors@detrius]$ ; ruby -e 'Dir.chdir "/tmp"; system "pwd"' > /tmp > > /Erik > -- > Erik B�gfors | erik@bagfors.nu > Supporter of free software | GSM +46 733 279 273 > fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32 >