Quote Originally Posted by abazabam
What is the best function to tell if a file or directory exists? I'm trying to use the Dir function but I don't know what attributes to use. I want the function to be very versatile so that it can tell if a file or directory exists no matter what attributes it has. Thank you
Use the attributes vbSystem + vbHidden. That will return any type of file or directory.