Here is a small script I wrote that recursively scan a directory without some parent-subdirectories and extracts some attributes of the files within it.
@echo off
echo Path,Name,Extension,Size > filelist.txt
for /f "delims=" %%i in ('dir D:\שער /A:-d /s /b ^| findstr /l /i /v ^/c:"קקק" ^/c:"ttt"')
do echo %%~dpi,%%~ni,%%~xi,%%~zi >> filelist.txt
The problem is that findstr doesn't support Unicode chars (hebrew in this case, for /f does if you change the console font).
What is the PowerShell version of this script (assuming that PS loop does support unicode chars) ?
Thank you
findstr
doesn't support Unicode butfind
does