Achilles Posted March 6, 2009 Share 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] Link to comment Share on other sites More sharing options...
Authenticity Posted March 6, 2009 Share 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 Link to comment Share on other sites More sharing options...
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