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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dos batch programing

Status
Not open for further replies.

olblue

Technical User
Jan 14, 2004
2
US
If you can help...My mind id blank on this....

I issue a simple string search for an error and once found I need to step back 3 lines to find out what the error was.

how would I step back the 3 lined and display the string

my find string:

findstr /i /c:"error" c:\acstest.x >

My thanks for any help
 
Not so easy to do with dos batch scripting. Might be easier with javascript or vbscript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top