Solved

Is there a workaround to using wildcards in FileExists line?

Posted on 2012-03-28
3
389 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 51

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 51

Expert Comment

by:Bill Prew
ID: 37778333
Thanks!

~bp
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

21 Experts available now in Live!

Get 1:1 Help Now