speedy6 Posted July 19, 2008 Share Posted July 19, 2008 Hi, I want to get a array back from all my photo's that are on my c:\ drive. But it isn't working. What am I doing wrong? I'm using this: files = _FileListToArray3("c:\",'$Recycle|windows|backup|MSOCache',1,1,1,"*.png;*.Gif;*.Jpg;*.Png;*.tif;*.jpeg") Thanks Link to comment Share on other sites More sharing options...
picaxe Posted July 19, 2008 Share Posted July 19, 2008 Maybe you have filter and exclude the wrong way arround Link to comment Share on other sites More sharing options...
speedy6 Posted July 21, 2008 Author Share Posted July 21, 2008 Maybe you have filter and exclude the wrong way arroundHow you mean?How should it be then? Link to comment Share on other sites More sharing options...
weaponx Posted July 21, 2008 Share Posted July 21, 2008 Well here is the function call: _FileListToArray3($sPath, $sFilter = "*", $iFlag = 0, $iRecurse = 0, $iBaseDir = 1, $sExclude = "", $i_deleteduplicate = 1) You aren't calling it correctly. Link to comment Share on other sites More sharing options...
speedy6 Posted July 21, 2008 Author Share Posted July 21, 2008 Well here is the function call:_FileListToArray3($sPath, $sFilter = "*", $iFlag = 0, $iRecurse = 0, $iBaseDir = 1, $sExclude = "", $i_deleteduplicate = 1)You aren't calling it correctly.ah found it thanks muttley Link to comment Share on other sites More sharing options...
speedy6 Posted July 21, 2008 Author Share Posted July 21, 2008 Litle question: $files = _FileListToArray3("c:\",'*.png;*.Gif;*.Jpg;*.Png;*.tif;*.jpeg',1,1,1,"Recycle;Windows;backup;MSOCache;Program Files;Temporary Internet Files;Mijn gespreksgeschiedenis;Framework;xampp") it works for the extentions... but not for the excusion... Windows and more... What is wrong is it: Recycle;Windows or Recycle|Windows or what ??? Link to comment Share on other sites More sharing options...
speedy6 Posted September 4, 2008 Author Share Posted September 4, 2008 Still no answer.. Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 4, 2008 Share Posted September 4, 2008 Litle question:$files = _FileListToArray3("c:\",'*.png;*.Gif;*.Jpg;*.Png;*.tif;*.jpeg',1,1,1,"Recycle;Windows;backup;MSOCache;Program Files;Temporary Internet Files;Mijn gespreksgeschiedenis;Framework;xampp") it works for the extentions... but not for the excusion... Windows and more...What is wrong is it:Recycle;Windows orRecycle|Windows or what ???Perhaps the exclusions are being applied to the file names, and not the folder names being recursed? Your flag option is to return files only. Does the logic in the UDF support filtering folder names searched with that option? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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