Jamis Buck wrote:
> Dir.chdir() should do what you want, e.g.:
> 
>  system("pwd")
>  Dir.chdir("CaseX") { system("pwd") }
> 
> Within the block, the working directory is the argument to Dir.chdir.
> When the block finishes, the working directory is automatically reset
> to what it was before.
> 
> - Jamis


A million thanks. It worked.
-- 
Posted via http://www.ruby-forum.com/.