I need to write a batch script.
I have a folder on my desktop name "folder". inside it has many sub folders. there is no way of telling how much sub folder there are. Insidde some of sub folder there is a file.
folder
- sub folder 1
- sub folder 1
- sub folder 2
- sub folder 3
- file
- sub folder 2
- sub folder 1
- file
- sub folder 3
- sub folder 1
- sub folder 4
- sub folder 1
- sub folder
What I want to do:
- loop though all folder / sub folders
- check to see if that folder is empty or not
- print name of folder and weither is empty or not
Here is a example of output:
folder is not empty
folder/sub folder 1 is not empty
folder/sub folder 1/sub folder 1 is empty