How can I use wildcards in the file path
I would like to open a file using streamreader, which I can do just fine as long as I know the exact file name. The problem is the file name changes (i.e. the date is part of the file name)slightly and I want to use a wild card in the path. VB.Net will not allow the typical "*" wildcard. I tried using the Rename function but the same exception error happens.
Why can DOS do a simple rename with code as as simple as ">rename C:\*.txt C:\newname.txt" but VB.Net can't do it?
Any ideas??
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Adam ErstelleRank #3,005 · 479 reputationPosted Aug 30, 2004, 8:31 AM EDT