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

CMD looping issue

Status
Not open for further replies.

Keevo

Programmer
Oct 23, 2013
4
CA
Hi I am trying to loop the following without success, any suggestions? Thanks

@echo off
:BEGIN
T:
cd js
cd ddf
cd invent

for %%s in ("invstk" "labmas") do (
Call Isutl -r %%s

if result output contains "%ISUTL=20: Cannot open index file" goto SendEmail else if the result = "Indexing Complete" continue to next file in

list, if result not contains "%ISUTL=20: Cannot open index file" or "Indexing Complete" then call Isutl -r on that file again

)

:SendEmail

:DONESCAN
Exit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top