How do I find files with the same extension

  • Thread starter Thread starter greg chu
  • Start date Start date
G

greg chu

Hi, I need to find a file or files with extention *.PUL in a particular
directory and get the newest one (newest creation date).

I belive some one must have done this before.
Please help!

Thanks!
Greg
 
greg chu said:
Hi, I need to find a file or files with extention *.PUL in a particular
directory and get the newest one (newest creation date).

\\\
Imports System.IO
..
..
..
Const PulExtension As String = "*.pul"
Dim FileNames() As String = _
Directory.GetFiles("C:\test", PulExtension)
///

More evolved recursive and threaded file enumeration:

<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/FileSystemEnumerator.zip>

Sorting the files by date:

<URL:http://groups.google.es/[email protected]>

(The reason why I am linking to google.es is that this is one of the few
Google Groups Web interfaces which have not yet been replaced by the
crippled and dysfunctional new version of the Web interface.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top