Jump to content

Filters with _FileListtoARray not working


Recommended Posts

I want to use a _FileListToArray with images. This is what I'm trying:

#Include <File.au3>
#Include <Array.au3>
$FileList=_FileListToArray(@DesktopDir, '*.doc', 1); works, but I need more filters
;~ $FileList=_FileListToArray(@DesktopDir, '(*.jpg;*.doc)', 1); doesn't work
;~ $FileList=_FileListToArray(@DesktopDir, '*.jpg;*.doc', 1); doesn't work
If @Error=1 Then
    MsgBox (0,"","No Files\Folders Found.")
    Exit
EndIf
_ArrayDisplay($FileList,"$FileList")
But they don't return an array of either even though my desktop has both docs and images. Any ideas? I'm not sure where you find the syntax for filters.
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...