error on for /f in the block
Posted: 01 Nov 2022 09:00
Hello,
I need help with a for /f
if I run this code, the for /f gives me an error
the for is inside a block, can someone explain to me how to solve it and why it don't works?
I need help with a for /f
if I run this code, the for /f gives me an error
Code: Select all
@echo off & setlocal enableDelayedExpansion
>"%TMP%\env.txt" set
set /a nl=10
(
for /f "skip=!nl! eol== delims==" %%V in (%TMP%\env.txt) do set "%%~V="
)
Code: Select all
!nl! eol== delims==" non atteso.