Sign in to follow this  
Followers 0
Buffo

Problem with _FileListToArray()

7 posts in this topic

Hello guys,

although I used the search function, I don't get an answer. I hope you can help but I think so ;)

The problem to solve is already explained in the title.

There is a folder with some subfolders and files. I only want to read the (sub)folders, so I use this syntax:

#Include <File.au3>

...

...

$folders = _FileListToArray("F:\Pics", 2)

_ArrayDisplay($folders, "Test")

...

...

I never get an output. The same situation is if I try

$folders = _FileListToArray("F:\Pics", 0)

to show all files and folders: nothing happens.

Only if I use without parameters

$folders = _FileListToArray("F:\Pics")

all items are shown.

What went wrong. Didn't I understand this function and it's my fault or is this a bug?

My AutoIt Version is toggled between last official release and last beta. It won't work in both versions for me. I don't think that's intersesting, but perhaps: My OS WinXPPro SP2.

I hope that someone can help me :P

Muchas gracias!

Cu,

Buffo

Share this post


Link to post
Share on other sites



looks to me like a bug

i tested the help script and added the "flag" like you and

Yepper.... same problem

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thx for your answers ;)

Ok, then I'll try something other.

I need all users of my PC, so I wanted to list the dir of %ALLUSERSPROFILE% in an array.

Then I'll do it per DOS-Command, save a temp file and read this out.

Cu,

Buffo

PS: If I search for "FileListToArray", no topics are shown.

Share this post


Link to post
Share on other sites

Thx for your answers ;)

PS: If I search for "FileListToArray", no topics are shown.

Works fine in latest BETA....

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

@JdeB: Thx for Info.

Just new Beta .76 installed but for me it still isn't working.

By the way: The installers in http://www.autoitscript.com/autoit3/files/beta/autoit/

are marked with "beta" in filename, the zips not. Is this wanted? I always rename the files manually after download to mark them as not stable, so I don't get confused.

Cu,

Buffo

Share this post


Link to post
Share on other sites

Stop :P

Certainly it works. My fault ;)

I forgot the filter-param at the second place, so I set the 2 for showing only directories as filter.

Pretty good work...

Cu

Buffo

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  
Followers 0