Sign in to follow this  
Followers 0
locutus243

Counting Folders

4 posts in this topic

Hiya guys,

I've tried searching this but its coming up with nothing. I have a folder, that contains a selection of other folders. I was wondering if there was any way of counting how many folders were in a directory, and then getting a list of the names of those folders?

Any help greatly appreciated

Thanks

Mark

Share this post


Link to post
Share on other sites



Hiya guys,

I've tried searching this but its coming up with nothing. I have a folder, that contains a selection of other folders. I was wondering if there was any way of counting how many folders were in a directory, and then getting a list of the names of those folders?

Any help greatly appreciated

Thanks

Mark

Helpfile: _FileListToArray + 2nd param

Forum: Search for _FileListToArrayEx, _FileListToArrayNew


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Hi!

#include <File.au3>
#include <Array.au3>
$folders=_FileListToArray(@ScriptDir,"*",2)
_ArrayDisplay($folders)

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Helpfile: _FileListToArray + 2nd param

Forum: Search for _FileListToArrayEx, _FileListToArrayNew

Much appreciated Smoke....and quicker than ever!! Can't believe I didn't see that one...its been a long day!

Cheers

Mark

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