dotnetnube
Member
- Joined
- Aug 20, 2008
- Messages
- 8
- Programming Experience
- Beginner
I need to find the newest file in a file folder by looking at the creation date. What is the best way to go about this?
I already have the code below to do some other work. Can I insert code to do the comparison inside the For...Each, or is there a better way to do it?
Dim sourceFiles As FileInfo()
Dim sourceFile As FileInfo
For each sourceFile in Sourcefiles
...existing code
Next
Thank you in advance!
I already have the code below to do some other work. Can I insert code to do the comparison inside the For...Each, or is there a better way to do it?
Dim sourceFiles As FileInfo()
Dim sourceFile As FileInfo
For each sourceFile in Sourcefiles
...existing code
Next
Thank you in advance!