Click here to Skip to main content
15,913,836 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Uncompress Tar.Z Pin
Dave Kreskowiak12-Oct-05 1:19
mveDave Kreskowiak12-Oct-05 1:19 
QuestionHow to specify the amount of files i need to grab through Directory.GetFiles() Pin
merlynml11-Oct-05 16:40
merlynml11-Oct-05 16:40 
AnswerRe: How to specify the amount of files i need to grab through Directory.GetFiles() Pin
maxiachun11-Oct-05 18:01
maxiachun11-Oct-05 18:01 
AnswerRe: How to specify the amount of files i need to grab through Directory.GetFiles() Pin
maxiachun11-Oct-05 18:05
maxiachun11-Oct-05 18:05 
GeneralRe: How to specify the amount of files i need to grab through Directory.GetFiles() Pin
merlynml11-Oct-05 18:15
merlynml11-Oct-05 18:15 
GeneralRe: How to specify the amount of files i need to grab through Directory.GetFiles() Pin
Dave Kreskowiak11-Oct-05 18:18
mveDave Kreskowiak11-Oct-05 18:18 
GeneralRe: How to specify the amount of files i need to grab through Directory.GetFiles() Pin
merlynml11-Oct-05 18:31
merlynml11-Oct-05 18:31 
GeneralRe: How to specify the amount of files i need to grab through Directory.GetFiles() Pin
Dave Kreskowiak12-Oct-05 1:17
mveDave Kreskowiak12-Oct-05 1:17 
What do you mean?

.GetFiles() just gets all of the filenames in a directory. It doesn't do any sorting.

If you want a sorted list of files by date/time, even if you wanted the newest 10 files, you'll have to read the filename for all the files in the directory, sort them, then take the top 10. There's no way around this.

Now, if you could get away with this, you move the files you've already processed to another folder. This way, you're not trying to read the filenames of a 1,000 files just to sort them by date/time and then process the top whatever number of files. It's just when you're done with them, move them so you don't end up reading the same filenames over and over.



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: How to specify the amount of files i need to grab through Directory.GetFiles() Pin
merlynml12-Oct-05 1:26
merlynml12-Oct-05 1:26 
Questionhttp Response Pin
ybasha11-Oct-05 16:34
ybasha11-Oct-05 16:34 
Questionrequiredfield validator and rangevalidators don't work on remote server?? Pin
vicky45711-Oct-05 13:20
vicky45711-Oct-05 13:20 
AnswerRe: requiredfield validator and rangevalidators don't work on remote server?? Pin
Dave Kreskowiak11-Oct-05 13:48
mveDave Kreskowiak11-Oct-05 13:48 
GeneralRe: requiredfield validator and rangevalidators don't work on remote server?? Pin
vicky45711-Oct-05 14:01
vicky45711-Oct-05 14:01 
GeneralRe: requiredfield validator and rangevalidators don't work on remote server?? Pin
vicky45711-Oct-05 14:33
vicky45711-Oct-05 14:33 
QuestionPackeging And Deployment Problem Pin
shoaibnawaz11-Oct-05 12:23
shoaibnawaz11-Oct-05 12:23 
AnswerRe: Packeging And Deployment Problem Pin
Dave Kreskowiak11-Oct-05 13:47
mveDave Kreskowiak11-Oct-05 13:47 
QuestionErr Message Pin
No-e11-Oct-05 9:10
No-e11-Oct-05 9:10 
AnswerRe: Err Message Pin
Dave Kreskowiak11-Oct-05 9:18
mveDave Kreskowiak11-Oct-05 9:18 
QuestionExport Crystal into pdf Pin
Laasyalaasya11-Oct-05 8:23
Laasyalaasya11-Oct-05 8:23 
QuestionConverting Text file to Sql Table Pin
u_rocky11-Oct-05 8:03
u_rocky11-Oct-05 8:03 
AnswerRe: Converting Text file to Sql Table Pin
Dave Kreskowiak11-Oct-05 9:15
mveDave Kreskowiak11-Oct-05 9:15 
QuestionClose A Form Without User-Event?? Pin
CamToo11-Oct-05 2:14
CamToo11-Oct-05 2:14 
AnswerRe: Close A Form Without User-Event?? Pin
Richard_Wolf11-Oct-05 5:26
Richard_Wolf11-Oct-05 5:26 
AnswerRe: Close A Form Without User-Event?? Pin
Dave Kreskowiak11-Oct-05 5:49
mveDave Kreskowiak11-Oct-05 5:49 
AnswerRe: Close A Form Without User-Event?? Pin
Guerven12-Oct-05 16:27
Guerven12-Oct-05 16:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.