-1
I have a folder which freezes the whole system when I open it (probably there is a corrupted file). Luckily, I'm just interested in the names of the files in the folder.
So, how do I create a dirlist.txt from a folder in Powershell and at the same time not save it in the folder itself? Because if I do that, I won't be able to reach the dirlist. Thanks a lot!
I'd add the parameter
-ErrorAction SilentlyContinue
or short-EA 0
to the gci. – LotPings – 2018-06-18T11:23:45.493