Is there a way to show a progress bar for the findstr, I'm looking for powershell scripts that contain an explicit password in it, so the developers change their scripts, but there are lot of ps1 files within E drive so we don't know which script has it, I'd like to set a progress bar to know the status of the find, i'm new in batch scripting hope you can help me.
findstr /spin /c:"password" E:\*.sp1 > C:\Users\uescareno\Documents\Scripts\found.txt
I was thinking to use FOR, but not sure if this works:
set "spinner=/-\|"
(
for (findstr /spin /c:"password" E:\*.sp1 > C:\Users\uescareno\Documents\Scripts\found.txt) do (
<nul>con set /p"=Searching !spinner:~0,1!!CR!"
set "spinner=!spinner:~1!!spinner:~0,1!"
echo %%~tA %%~xA %%~nA
) echo Searching done