Solved

Is there a workaround to using wildcards in FileExists line?

Posted on 2012-03-28
3
390 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 52

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 52

Expert Comment

by:Bill Prew
ID: 37778333
Thanks!

~bp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Welcome to part one of a multi-part tutorial series, VBScript for Windows System Administrators.  The goal of this series is to teach non-programmers how to write useful VBS code to automate their environment, and perform tasks faster, and in a more…
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…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now