How to find a text file within a folder then copy the folder and all sub folders

found this Set FLATVIEW and nested Levels how to set this for my need ? some help would be nice