Page 1 of 1

Multiple patterns in directory commands

Posted: Thu Apr 19, 2007 10:29 am
by Derek
Would be handy to have multiple paterns in the directory searching commands, so for example you can find all the jpeg's+bmp's+tiff's in one go without having to examine the extensions yourself.

Code: Select all

Directory$ = "c:\"
If ExamineDirectory(0, Directory$, "*.sys")  ;*.sys works  *.sys;*.bat finds nothing
  While NextDirectoryEntry(0)
    If DirectoryEntryType(0) = #PB_DirectoryEntry_File
      Type$ = " [File] "
    Else
      Type$ = " [Sub-Dir] "
    EndIf
    Debug DirectoryEntryName(0) + Type$ + "- Size in byte: " + Str(DirectoryEntrySize(0))
  Wend
  FinishDirectory(0)
EndIf

Posted: Thu Apr 19, 2007 12:35 pm
by AND51

Posted: Thu Apr 19, 2007 12:38 pm
by Derek
Ah, did a quick search but didn't notice/find the request. :oops:

Posted: Thu Apr 19, 2007 2:01 pm
by AND51
Even my post was a second one: It has already been requested before I did it.

But this does not matter: It's just a reminder for Fred. :wink:

Posted: Sun Apr 22, 2007 12:11 pm
by Joakim Christiansen
Yeah, I second this.

Posted: Sun Apr 22, 2007 2:26 pm
by Dare
I support this request.

Posted: Sun Apr 22, 2007 8:37 pm
by nco2k
i was requesting this a long time ago. fred said that he likes the idea. i guess its just a matter of time.

c ya,
nco2k