Jump to content
Sign in to follow this  

How to make an array of all subfolders from one path

Recommended Posts

I have a directory tree with three levels.

Can I make an array of all subfolders from the path of the top folder?

I don't think it's possible to do this with a single command.

Could I do it this way?

1. Use the command _FileListToArray to make an array $FolderList

2. Loop through $FolderList to find folders one level down in the tree

3. Repeat 2 until there are no more folders to find

4. Add all the arrays together into one big array.

The total number of folders could be approx. 1000.

Can AutoIt handle an array of this size?

Many thanks if anybody has a tip or a simpler method.


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...