If searching for a file then you should use the IO.File.Exists method.