Should have a try/finally here so that you guarantee the current directory is set back to it's original location, even if an exception gets thrown.