Solved To find the particular string in the file.

February 18, 2014 at 04:40:06
Specs: Windows Server 2003
Good Morning Everyone!!

My requirement is to find the string 'Error' in the file abc.txt.
If the String 'Error' found in file we need to fail the job like we need to set the errorlevel to 1.
If there is no 'Error' found in the file then the job is successfull.

Please help me on this.

See More: To find the particular string in the file.

Report •

February 18, 2014 at 05:22:34
✔ Best Answer

Report •

February 18, 2014 at 06:19:01
If the keyword Error is found we need fail the job

Report •

February 18, 2014 at 08:04:23
Should I just repeat my previous post?

I've given you the tool, now it's up to you to finish the job.

Report •

Related Solutions

February 18, 2014 at 14:47:04
You say you have Windows Server yet have posted on the old Windows 95/98 forum.

Just for info, if you get another (new) query of this type put it on the Programming forum. That way ensures you get immediate help.

Always pop back and let us know the outcome - thanks

Report •

March 4, 2014 at 02:08:51
::====== script starts here ===============
:: suhai.bat 2014-03-04 17:05:22.34
@echo off > NEWFILE & setLocal enableDELAYedeXpansioN

find "Error" < myfile > nul
if errorlevel 1 echo not found
::====== script ends here =================

M2 Golden-Triangle

Report •

Ask Question