Hello all!
I am trying to develop some code that will do a kind of backwards recursive search.
I have a directory (D:\), that contains a folder (archive) that has over 2000 subfolders, and some of those folders have subfolders. I need a script to search through each folder and if there are no *.jpg's in a folder to return that folders name. The name pop-up can just be an echo, it does not have to get complicated as far as writing the folder name to another file or anything like that. Of course, if that is possible without a lot of extra effort, it would be nice. Most of my folders should contain jpg's, maybe only 5-10 will not. That is my reason for the search.
I have done my research on recursive searches, but none of them address this type of issue (that I could find). Where basically it checks at the end of each folder and then returns a value if necessary and then continues to the next folder.
I really appreciate any help on this.
Thanks!!
Chris
I am trying to develop some code that will do a kind of backwards recursive search.
I have a directory (D:\), that contains a folder (archive) that has over 2000 subfolders, and some of those folders have subfolders. I need a script to search through each folder and if there are no *.jpg's in a folder to return that folders name. The name pop-up can just be an echo, it does not have to get complicated as far as writing the folder name to another file or anything like that. Of course, if that is possible without a lot of extra effort, it would be nice. Most of my folders should contain jpg's, maybe only 5-10 will not. That is my reason for the search.
I have done my research on recursive searches, but none of them address this type of issue (that I could find). Where basically it checks at the end of each folder and then returns a value if necessary and then continues to the next folder.
I really appreciate any help on this.
Thanks!!
Chris