Question

get tree of file and subfolder display in txt file_

  • 2 February 2024
  • 6 replies
  • 67 views

Badge +4

Hello everybody,

I try to get all folder, subfolder name and file mane, type in output file.

the output must display like a tree.

EX content of C:

C\

     B\B1\T.txt

      D\H.pdf

 

Output: file.txt

C

     B

          B1

                T.txt(txt)        

     D   

          H.pdf(pdf)

 

I thank you for your very valuable help.


6 replies

Userlevel 6
Badge +15

Hi @Olatidoye ,

 

Please find the below,

You can get the Folder and Subfolder names by select Include all sub folder option.

Once you have get subfolder path, (pass the path location into another loop) 

add Loop For Each file in Folder for the getting the filename

 

Note : Include the if condition for validate the file extensions

 

 
 
Badge +4

Thank for your reply . please can you show step by step in order to follow you 

Userlevel 6
Badge +15

 

Badge +4

hello ,

when i run i get this error message

 

Badge +4

This is the code on AA360

 

 

Userlevel 6
Badge +15

have you selected the 1st loop, like a below

 

 

Reply