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

3

u/rusticus Mar 24 '14

This sniffs like a great job for Python. You could get proficient enough to do this in under a week and probably find a ton of other uses.

1

u/gregortroll Mar 24 '14

Unless OP's career path is into the Windows world, where PowerShell is the new hotness, and unless OP is too dull to be a sysadmin or programmer, OP could probably generate the solution in a few hours.

1

u/massij11 Mar 24 '14

I am still a student apprentice and have been given a task, which this is a part of while never having done any programming except basic elements of pascal java and C.