FINDSTR: Write error #25879
Replies: 1 comment
|
The most reliable fix is to keep this operation in PowerShell and filter the file-name property directly: Get-ChildItem | Where-Object Name -match 'win32'
# Include a PowerShell-generated sequence number if needed
$line = 0
Get-ChildItem | Where-Object Name -match 'win32' | ForEach-Object {
$line++
'{0}:{1}' -f $line, $_
}If the intent is specifically to test native $OutputEncoding = [Console]::InputEncoding
Get-ChildItem | findstr.exe /N /L "win32"That session-wide setting can affect other native tools, so property-based PowerShell filtering is preferable here. Microsoft documents that |
Uh oh!
There was an error while loading. Please reload this page.
I use the
lscommand to look for files, and the results are garbledAll reactions