Extract the path of each file in a folder

Good day,

I would like to extract from a folder the path of each file in this folder and write it down in an excel.
Could someone provide some help?

Many thanks in advance.

@artem1 You can get the Files with Path using Directory.GetFiles(“Folder Path”)

This returns an Array of String, So make sure you assign it to an Array of String Variable

Many thanks.
How I program that he goes throw every file in one folder?
I would use a for each instruction.

  1. Use Directory.GetFiles(“Folder Path”) in for each directly . Property should be set as string
  2. Loop it and follow your process.

inside loop you use Message Box and print item.ToString
youll get the file path of the all the files in a folder!

for each argument type is String

1 Like

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