psy_: (Batch) Wert aus txt in Variable

Beitrag lesen

for /f "tokens=7 delims=) " %%I in (errors) do (
  echo %%I
)

Danke!
Meine Lösung:

  
for /f "delims=" %%l in (errorfile.txt) do (  
set ip1=%%l  
set ip2=!ip1:~-12!  
set ip3=!ip2:~0,11!  
echo !ip3!  
pause  
if "!ip3!"=="%IPNala%" call :test1  
if "!ip3!"=="%IPpcunten%" call :test2  
)