Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

coding question

Apr
1,794
15
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
 
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:\>
 
Alternatively, you could combine some of those steps:
Code:
do line in /p dir /b /s "ftp://ftp.wherever.com"
...
enddo
 

Similar threads

Back
Top