coding question

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#2
set sFile=d:\whereever\name.ext
dir /b /s "ftp://ftp.whereveer.com" >! %sFile
do line in (@[%sTmpFile%])
....
enddo

The "do line in...." does not actually process the lines "..." inside the DO .. ENDDO
That looks funny. I don't understand the []s and the ()s. It would seem that should be
Code:
do line in @%sFile
...
enddo
Code:
v:\> type dotest.btm
set file=v:\testfile.txt
do i=1 to 10 ( echo %i >> %file )
do line in @%file
        echo %line
enddo
 
v:\> dotest.btm
1
2
3
4
5
6
7
8
9
10
 
v:\>