If any part of filename has text say "app" in multiple child subfolders inside "myfolder1" then copy all those files with "originsubfoldername_existingname.txt" in "folderX".
If any part of filename has text say "app" in multiple child subfolders inside "myfolder1" then copy all those files with "originsubfoldername_existingname.txt" in "folderX".
Is this a description of the situation as in the image ?
Yes!
Again myfolder1_child3 may have child folders myfolder2_child-x and
myfolder2_child-x may have child folders myfolder3_child-y.
However, your answer means "no":
1. What if some subsequent child directory will be named as one of the earlier directories and the file names will be the same (?), then the files will overwriting each other, e.g.:
\myfolder1\myfolder1-child3\myfolder1-child3_folder1
, where e.g.: myfolder1 = "A", myfolder1-child3 = "AB", myfolder1-child3_folder1 = "AB", then:
\A\AB\AB
see attachment
2. Present an example layout / nesting of such directories that may appear at your place
Last edited by mjr veverka; 12-24-2019 at 08:35 AM.
All folder names are different. If the same foldername.filename appaers we can use number like foldername.filename_1, foldername.filename_2.
Try:
Macro call, e.g.:Please Login or Register to view this content.
Please Login or Register to view this content.
"mainfolder" issue saying type mismatch.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks