diff --git a/SharePointFunctions.ps1 b/SharePointFunctions.ps1 index ed741cc..c282253 100644 --- a/SharePointFunctions.ps1 +++ b/SharePointFunctions.ps1 @@ -258,8 +258,12 @@ function List-XlsFiles { $fileList = Get-XlsFilesRecursive -DriveId $drive.Id -DriveItemId $root.Id } - if ($fileList.Count -gt 0) { + if ($fileList.Count -gt 0) { $script:txtStatus.Text += "Saving file list...`n" + # Display each file on a new line + $fileList | ForEach-Object { + $script:txtStatus.Text += "$($_.OriginalFileName)`n" + } $fileList | ConvertTo-Json | Out-File "$env:TEMP\FileList.json" $script:txtStatus.Text += "Found $($fileList.Count) XLS files`n" } else {