Search found 4 matches

by albert_newton
03 Aug 2009 13:16
Forum: DOS Batch Forum
Topic: How to step through a file using a batch file?
Replies: 11
Views: 15112

Also, it would also be used with unix, and so can't use VBScript. what makes you think that writing in batch can be used in Unix? You got me on that one,lol ... I gather they are going to do something special for the Unix environment... but I do need to use batch file to be able to achieve this in ...
by albert_newton
30 Jul 2009 13:28
Forum: DOS Batch Forum
Topic: How to step through a file using a batch file?
Replies: 11
Views: 15112

Unfortunately I need to use batch programming, since the place where this stuff is going to be deployed should not have to install anything like Perl, Jython, etc to be able to run the script. Also, it would also be used with unix, and so can't use VBScript. So, I have to continue using the batch fi...
by albert_newton
24 Jul 2009 09:28
Forum: DOS Batch Forum
Topic: How to step through a file using a batch file?
Replies: 11
Views: 15112

I was able to search for the lines containing the string " stop trying to browse through it", and writing it to the TestFile.txt by doing as follows: TYPE C:\BatchTest\httpd.conf | Find "stop trying to browse through it" > C:\BatchTest\TestFile.txt... now i need to add some more ...
by albert_newton
23 Jul 2009 15:48
Forum: DOS Batch Forum
Topic: How to step through a file using a batch file?
Replies: 11
Views: 15112

How to step through a file using a batch file?

I am trying to create a batch file that steps through a file until it finds a particular line. When it finds the line, it writes a few key words from that line into a new file. I was wondering how this can be done using a batch file? So, how can I step through the lines of a file until I hit the lin...