Here is my question:
How would I go about getting a list of all folders in the specific directory and .exe's.
The format is as follows
z:\xxxxxx\appdata\roaming
I want the batch file to look through every folder aka xxxxxx Z: looks like
z:\xxxxxx
z:\xxxxxx
z:\xxxxxx
z:\xxxxxx
z:\xxxxxx
And in each xxxxxx folder I want it to get the folder names in appdata & any .exe's then enter the roaming folder and get all folder names & any .exe names.
Then I want to output it to a specific
z:\xxxxxx\desktop\output.txt
The output should look like
z:\xxxxxx
--------------------- app data --------------------
roaming
example folder2
example.exe
--------------------- roaming ---------------------
example folder1
example folder2
example folder3
example folder4
example folder5
example folder6
example1.exe
example2.exe
---------------------------------------------------
and so and so forth for the rest of the z:\xxxxxx
folders
I also want it to list hidden folders if possible.
I have some batch code I have started with but I am pretty lost I will post it tomorrow.