How to list the directories of multiple folders?
3 views (last 30 days)
I have a number of folders that I would like to list and later access the files from them. Currently, I do it in this way:
P1 = 'C:\Users\Desktop\Stats\ID001_Stats';
P2 = 'C:\Users\Desktop\Stats\ID002_Stats';
P3 = 'C:\Users\Desktop\Stats\ID003_Stats';
P4 = 'C:\Users\Desktop\Stats\ID004_Stats';
P5 = 'C:\Users\Desktop\Stats\ID005_Stats';
Is there an easier way to do this since I have 20 folders?