how to loop through all lines in a text file

October 19, 2011 at 01:26:39
Specs: Windows XP
FOR /F %%G IN ("C:\temp\server.txt") DO ECHO %%G
BIN
CD pub/swdistrib
LCD C:\temp
PUT test.txt
QUIT
-------------------------------
server.txt
--------------
open ftp.myexample.com
username
password

will it work for reading the server.txt file using the given batch file?if not help me with the solution......


See More: how to loop through all lines in a text file

Report •


#1
October 20, 2011 at 13:38:53
What are you trying to accomplish with your script?

Report •
Related Solutions


Ask Question