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!

Need a DOS Batch pro!

Status
Not open for further replies.

riluve

Technical User
Mar 11, 2005
78
US
So I can search a file with FINDSTR - but now I need to store it to a variable or parse it in-line to get a single value in the result. For example:

FINDSTR "KEYWORD" *.TXT

result:

KEYWORD = "VALUE"

What I need:

SET ENV = VALUE
-or-
1% = VALUE

Anyone know how to do this? Is it possible with DOS (NT) Batch files and commands or will I need a 3rd party program?

Thnx
 
bugger, I am just going to have to write a utility to do this.

Bill Gates, give me my $300 back!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top