Jump to content
Sign in to follow this  

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.")
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]

Share this post

Link to post
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

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.