title: .bat file how to repeat process for each row in list.txt (creating shortcuts by list)
body: <p>My code now creates a shortcut to first row in "list.txt", with correct name (as last folder in target of shortcut called), but I need to do the same process with whole "list.txt", for each row, 
  as if I added 'skip=1', then 'skip=2'..... to '<strong>for /f</strong>' for each row:</p>
  
  <blockquote>
    <p>for /f "<strong>skip=1</strong> usebackq delims=" %%G IN (List.txt) DO if not
    defined line set "line=%%G"</p>
  </blockquote>
  
  <p>I can't repeat this process in one bat file to each row. How to do that? </p>
  
  <pre><code>@echo off
  Setlocal EnableExtensions
  for /f "usebackq delims=" %%G IN (List.txt) DO if not defined line set "line=%%G"
  set LNKNAME=%line:~0%
  for %%f in ("%LNKNAME%") do set LNKNAME_A=%%~nxf
  SET SAVETO=%userprofile%\desktop
  
      call :createLink "%LNKNAME_A%" "%line%"
  
  pause
  
  rem createLink &lt;linkname&gt; &lt;target&gt;
  :createLink
  set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
  echo Set oWS = WScript.CreateObject("WScript.Shell") &gt;&gt; %SCRIPT%
  echo sLinkFile = "%SAVETO%\%~1.lnk" &gt;&gt; %SCRIPT%
  echo Set oLink = oWS.CreateShortcut(sLinkFile) &gt;&gt; %SCRIPT%
  echo oLink.TargetPath = "%~2" &gt;&gt; %SCRIPT%
  echo oLink.Save &gt;&gt; %SCRIPT%
  cscript /nologo %SCRIPT%
  del %SCRIPT%
  EXIT /B 0
  rem goto :eof
  </code></pre>