Jump to content

_FileListToArray3 and willcards


Recommended Posts

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

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

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

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

  • 1 month later...

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 ???

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

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...