I need a CMD or Powershell script or batch file to
- step through a list of files
- make a folder named with the date of a file if it doesn't already exist, then
- move that file into its matching folder.
I have a list of about 400 files like this:
Using this as an example, the script should create a folder including the top two files called 2018-05-16
, a folder with the 3 next files called 2018-05-17
etc. Preferably in the same folder as the files are located now.
I'm on Windows 8 if that makes a difference.