Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How read a files line by line with dos batch files?

Status
Not open for further replies.

Ultdrake

Programmer
Jul 15, 2002
19
CA
How read a files line by line with dos batch files?
 
Tell us a little more...

You want to read a text file, one line at a time and then do what depending on the line contents?

You want to run a batch file one line at a time? That is not what you are asking but...
Code:
command /y/c [d:][path]filename.bat





-------------------------------------
Jnick opinions are not necessarily those of
Code:
Ronin Software Group
 
I want to read a text file, one line at a time and then do what depending on the line contents.

thanks...
 
I hope some other Tek-Tipper will correct me but I do not know a way to have a batch file respond to contents of a file the way you say.

PERL can do that but it is now a complex environment no longer easyt to learn, use, download. Maybe there is a no-frills PERL somewhere?


The River can do that, can't plug though.

If you like main me a small sample with a description of the tests and resulting actions.

j@roninsg.com

-------------------------------------
Jnick opinions are not necessarily those of
Code:
Ronin Software Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top