Sign in to follow this  
Followers 0
amakrkr

Directory list (without other files)

5 posts in this topic

Hello all,

i have searched the forem and help file wondering how could i make a script that reads only directories without other files?

_FileListToArray Is a nice function, i am wondering if there is something like _DirectoryListToArray.

Or another idea how could i get only directory list for example from c:\.

Thank you

Share this post


Link to post
Share on other sites



Hello all,

i have searched the forem and help file wondering how could i make a script that reads only directories without other files?

_FileListToArray Is a nice function, i am wondering if there is something like _DirectoryListToArray.

Or another idea how could i get only directory list for example from c:\.

Thank you

Thanks mate.

I was 100% there must be an option like that to sort out only folders but in help or on forum i havent found it.

Script works now.

Share this post


Link to post
Share on other sites

or .

RunWait("cmd.exe /c " & "dir /B /AD " & @HomeDrive & "\" & " >"&@TempDir&"\dirs.ini",@ScriptDir,@SW_HIDE)
MsgBox(64,"",FileRead(@TempDir&"\dirs.ini"))

edit: /B

Thx for replay. But 1st option suits my script better since i have to change only 1 argument in function :mellow:

ty

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