in reply to How do I move into a directory?

Use chdir. You might find the Cwd module useful as well; it will (optionally) override the built-in chdir function with one which keeps the "current working directory" (cwd) in sync.