Jump to content

Problem with _FileListToArray()


Buffo
 Share

Recommended Posts

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

Link to comment
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.

Link to comment
Share on other sites

  • Developers

Thx for your answers ;)

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

Works fine in latest BETA....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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

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