Thanks for the reply, but I was unable to resolve. I'm probably wrong, but I've tried both: @echo OFF setlocal ENABLEDELAYEDEXPANSION for /F "usebackq delims== tokens=*" %%A in ("file_prova.txt") do ( echo %%A" ) endlocal exit /b %ERRORLEVEL% that: @echo OFF setlocal ENABLEDELAYEDEXPANSION for /F "u...
Hello everybody, I developed a batch that cycles through the contents of the file and prints the value of the lines in another file, but I'm having problems with lines containing the "!" character. Below is a simplified example of what I am doing and the result obtained: Contents of the one-line exa...