Solved

Is there a workaround to using wildcards in FileExists line?

Posted on 2012-03-28
3
392 Views
Last Modified: 2012-03-28
I am trying to do this but it does not work

If objFSO.FileExists("S:\Folder\folder\from_mainframe\*") Then
0
Comment
Question by:harpess
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 37777350
0
 
LVL 53

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 37777374
You could create a folder object to that folder, and then check the file count for greater than zero.

~bp
0
 
LVL 53

Expert Comment

by:Bill Prew
ID: 37778333
Thanks!

~bp
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question