batch file - Windows CMD FOR loop - Stack Overflow
I'm trying to make a code which will get first words from all lines of HELP's output to a variable and echo this variable. Here is my code: @echo off set a= for /F "tokens=1,*" %%i in ('help') do... ... You need to use delayed expansion in your for loop @...