Create two new string variables to store the FullName and LocalPath of the extracted files. Let’s call them fullNameList and localPathList .
Use a For Each loop to iterate through the extractedFiles variable, which should be of type System.IO.FileInfo[] since extracted files are usually represented as FileInfo objects.
Inside the loop, use the “Assign” activity to update the fullNameList and localPathList variables. You can use the FullName and LocalPath properties of the current FileInfo object.
Assign fullNameList = New List(Of String)
Assign localPathList = New List(Of String)
For Each file In extractedFiles
fullNameList.Add(file.FullName)
localPathList.Add(file.Directory.FullName)
Assign fullNameString = String.Join(Environment.NewLine, fullNameList)
Assign localPathString = String.Join(Environment.NewLine, localPathList)
Extract Files (store in ExtractedFiles)
For Each currentItem in ExtractedFiles (TypeArgument: System.IO.FileInfo)
Assign FileFullName = Path.GetFileName(currentItem.ToString)
Assign FileLocalPath = Path.GetFullPath(currentItem.ToString)
// Use FileFullName and FileLocalPath as needed
End For Each
Path.GetFileName(currentItem.ToString): This will retrieve the file names present in the folder. Path.GetFullPath(currentItem.ToString): This will retreive the whole path of the files present in the folder.