Jump to content
Sign in to follow this  
speedy6

_FileListToArray3 and willcards

Recommended Posts

speedy6

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

Share this post


Link to post
Share on other sites
picaxe

Maybe you have filter and exclude the wrong way arround

Share this post


Link to post
Share on other sites
speedy6

Maybe you have filter and exclude the wrong way arround

How you mean?

How should it be then?

Share this post


Link to post
Share on other sites
weaponx

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.

Share this post


Link to post
Share on other sites
speedy6

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

Share this post


Link to post
Share on other sites
speedy6

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

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.