Need solution for Bat FIle using FOR Cycle

Hi people.

Don't know if you could help me, but here it goes anyway.

I need to search for some directories, and if i for any file founded a must run another Bat file.

Can this be done in DOS ?

Thanks in advance

This guy:
How to write a DOS batch file to loop through files Jim 2.0�s Blog
Has written a pretty good guide to doing this.

I found I got the most useful search output using:

dir c:\<filename> /B /P /S

(You can specify wildcards in <filename>)