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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to insert search capability.. 1

Status
Not open for further replies.

1Data

MIS
Sep 30, 2005
66
US
I need to be able to search a directory for XML files as part of this application. Can someone please offer some direction on how I can do this...I would then consume the Document into a Dataset.

Thanks in Advance
 
Try looking at the System.IO.File.Exists method


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
That is great I have another question is there a way to use a wildcard for instance in the path String

Dim path as String = "C:\root\directory\*.doc"

Can I use something like that to search for all docs in that directory?

Thanks
 
Yes, use the System.IO.Directory.GetFiles method instead as that allows you to define a search pattern


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I think that is going to do it...thanks a million.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top