I would like to write the directory names of several folders in an array. However, only all directory names with a date <today should be read. The directory names contain a date in this form * YYYYMMDD *
So I would have to do the following:
- Borrow the date
- Write the date in the form of YYYYMMDD in a variable
- Read out directory names and check against the variable Write data to an array ... do something ...
Can someone tell me how I can solve this with Powershell please?
Thank you