Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

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
×
×
  • Create New...