Achilles Posted March 6, 2009 Posted March 6, 2009 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]
Authenticity Posted March 6, 2009 Posted March 6, 2009 (edited) Well, the function definition doesn't expect any alternations. Read in the Example Script forum, weaponx wrote one nice RegEx function to allow alternations.Edit: http://www.autoitscript.com/forum/index.php?showtopic=58558 Edited March 6, 2009 by Authenticity
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now