$fileEntries = [IO.Directory]::GetFiles("C:\Users\U0146121\Desktop\Example Data");
I need to write the file name to a text file in a loop, but I'm not sure how to do this.
In the end, I will read the text file and look for the file names in excel. But now I have to write the .txt file first.
source share