wraps the VBA 'Dir' function, suppressing any error message and returning an empty string if there is an error. While calling Dir with a nonexistent path does not cause an error, calling it with a nonexistent drive letter does.
See Dir function for use.
This is only for the initial call: if getting the next path use Dir().
the string containing the Dir path
The Attribute mask for the directory query (see the VBA 'Dir' function)
; s = SafeDir("G:\temp\Temp*.txt")
note this is a simple example