Jump to content

Retrieve subfolder names from a folder and put them in one string?


Recommended Posts

How can I get the names of subfolders of a folder and put them in 1 string?

Note: I want only 1 level of the folder not more.

Example:

(retrieve names from folder "C:/stuff")

Folders tree:

C:/stuff/

C:/stuff/folder1/

C:/stuff/folder1/many_other_folders_and_subfolders/

C:/stuff/folder2/

C:/stuff/folder2/again_other_folders/

C:/stuff/folder3/

C:/stuff/folder3/more_folders/

Returned string: "folder1, folder2, folder3"

Edited by Aassdd
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...