It would be nice if there was DirectoryExists method or if you could check for existance of a Directroy in some way without having to trap an exception.
Exception Trapping is expensive and shouldn't be part of normal processing. The ChangeDirectory returns a boolean but if the directory doesn't exist, it throws an error instead of returning false. Under what conditions does it return false?
I have looked for this and the responses thus far have been to trap for an error. I just want to comment that I don't think that is an acceptable way of detecting for existance.