I've ready many articles and tutorials, all the same, about how to open and close files. And how to use file boxes to browse for files.

What I wan't to do is be able to check if a directory or file already exists, but without user intervention. An example would be a batch file command like "IF EXIST blah.txt THEN dowhatever"

Is there something like I could use if VB?