Windows Exploeer: Get file path, file name and creation date from folder and all subfolders into an Excelfie

The output should look something like this:

File path	File name	File creation date
C:\Users\HagenL\Documents\	File A	23.07.2023
C:\Users\HagenL\Documents\Folder 1	File B	23.07.2023
C:\Users\HagenL\Documents\Folder 2	File C	23.07.2023
C:\Users\HagenL\Documents\ Folder 3	File D	23.07.2023
…	…	…

I already got the output in three Arrays (except for the dates), but I need the output in a data table.
GetFoldersAndSubFolders.xaml (14.3 KB)

@hagen

You only need a for each file in folder activity…use include sub folders in it…and inside loop use currentfile.FullName for path …currentfile.Name for name and currentfile.ModifiedDate for date …use all of thse in add data row array row field…

After loop use write range to write the datatable which was build using add data row

Cheers

1 Like

Hi @hagen

Please find the below xaml.

GetFoldersAndSubFolders.xaml (19.6 KB)

Regards,

1 Like

Hi @hagen

Please find the below xaml total changes are done.

GetFoldersAndSubFolders.xaml (28.0 KB)

O/P Excel File:
Files Details.xlsx (6.5 KB)

Regards,

1 Like

@hagen

If you got the solution for your question. Please mark it as solution to close the thread and others also helped.

Regards,

1 Like

I’m unable to open your xaml files. Error: document invalid
Never had this issue in this forum (I’m sure the xaml files you sent work perfectly though and I am very thankful for them)

If sb else can open them pls give notice, so I can mark Irtetala’s answer as correct.
Also Irtetala I will mark yours as soon as I find out what the problem is. Hope that is okay for you. Otherwhise just write me here :slight_smile: Also thanks again

@hagen

Is it okay

1 Like

You’re an endboss! Thanks a lot :smile:

1 Like

@hagen

Please find the below xaml

Creation of Files in Excel.zip (156.2 KB)

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.