Is there a workaround to using wildcards in FileExists line?

I am trying to do this but it does not work

If objFSO.FileExists("S:\Folder\folder\from_mainframe\*") Then
Who is Participating?
Bill PrewConnect With a Mentor Commented:
You could create a folder object to that folder, and then check the file count for greater than zero.

Paul JacksonSoftware EngineerCommented:
Bill PrewCommented:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.