From: 7stud -- Date: 2007-10-30T16:23:38+09:00 Subject: Re: Zip an existing directory? 7stud -- wrote: > You could have always used system() again: > > system("cd /Users/petermarks/Desktop/orbus/public/1/daily") > Actually, that doesn't work because the cd system() call executes in a separate subprocess, so the zip system() call that executes in its own subprocess can't see the changed directory. You need to execute both commands in the same subprocess, so you would have to write it like this: system("cd /Users/autie/2testing; zip -r zipped_rails_app4 ./dir3") -- Posted via http://www.ruby-forum.com/.