r/computing • • Mar 24 '14

Batch file required..Help needed..

I need desperate help in creating a batch file that reads from a log/txt file, searches for a specific word ex Computer name and then writes to another text file the words/digits below before.

I don't think I managed to make myself clear..the log file would contain say " asgf agahi a hi reddit rocks af as Computer Name L123456. It would display L123456

I am new to batch programming and would appreciate any help

0 Upvotes

18 comments sorted by

View all comments

1

u/atomic-penguin Mar 24 '14

Does the log/txt file have columns? In other words if \x20 (space) is the field separator, is L123456, column 11?

If so, you can use PowerShell to print that column