
Re: Create a loop to set variable from text file and run bat
This is a skeleton to show you the sequence and where to continue your batch file
Code:
@echo off
for /f "delims=" %%i in (c:\server_audit\serverlist.txt) do call :start %%i
rem do your next commands here
pause
goto :EOF
:start
rem the loop commands go here
end of batch file