Aug 12, 2002 #1 Ultdrake Programmer Jul 15, 2002 19 CA How read a files line by line with dos batch files?
Aug 12, 2002 #2 jnicks IS-IT--Management Apr 3, 2002 219 US 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 Upvote 0 Downvote
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
Aug 12, 2002 Thread starter #3 Ultdrake Programmer Jul 15, 2002 19 CA I want to read a text file, one line at a time and then do what depending on the line contents. thanks... Upvote 0 Downvote
I want to read a text file, one line at a time and then do what depending on the line contents. thanks...
Aug 12, 2002 #4 jnicks IS-IT--Management Apr 3, 2002 219 US 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 Upvote 0 Downvote
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
Aug 12, 2002 Thread starter #5 Ultdrake Programmer Jul 15, 2002 19 CA http://www.ericphelps.com/batch/lists/line-seq.htm this page help me, but it's doesn't work in is whole... Thanks a lot... I think i'm ok... Upvote 0 Downvote
http://www.ericphelps.com/batch/lists/line-seq.htm this page help me, but it's doesn't work in is whole... Thanks a lot... I think i'm ok...