Why is this batch file looping?
Posted on 2009-07-12
I only wan this action to happen once but it echos Hi mutiple times then movesback to then next line in the firs file. I know I need to do something w/ and end statement or :eof but i cannot get themin the right place.
for /f %%A in (.\comp.txt) do set path=%%A & call :step1
for /f %%B in (.\user.txt) do set dir=%%B & call :step2