data.txt = Hamza,Rayss,male,fr_FR
@echo off
set /P "userString=Enter the search string: "
for /f "delims=" %%i in ('type "data.txt" ^|findstr /i /r "%userString%"') do Cls &Color 0a &echo %%i
pause >null
I want the result like this
- Nom : Hamza
- Prenom : Rayss
- Sx : male
- py : fr_FR