Create a file system object and use it's exist function for checking file exist or not. It is 10 times faster then dir .
For further contact [email protected]