Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wildcard Find First/Next

Status
Not open for further replies.

jrl237

IS-IT--Management
Jan 29, 2002
61
US
Is there a way in VBScript (or Javascript) to do a wildcard search on a folder? I do GetFolder to populate the files collection, but short of reading through each filename and comparing it to a search mask, I can't find a way to selectively choose files using wildcards.

Any help would be appreciated.

Thanks,
 
jrl237,

I haven't written any code yet, but what you need to do is get the folders collection and then the files collection.
When you enumerate the file names, you will have to do a pattern match using regexp function.

If you have VBscript or Javascript help, I suggest you look up REGEXP and PATTERN on how to match strings.

Good luck,
fengshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top