I have a bunch of files like these in a directory, many thousands of them.
20210528_195406.jpg
20210528_195406.xmp
20210529_113416.mp4
20210529_113416.xmp
20210529_151444.jpg
20210529_151444.xmp
20210530_150950.mp4
20210530_150950.xmp
20210601_175932.txt
20210601_175932~2.mp4
20210601_175932~2.xmp
I am looking for an easy way (Powershell command) to copy the files to subdirectories based on year / month / day.
So for example, the file 20210601_175932.jpg would be moved to (a newly created) subdirectory: 2021\06\01\.
How do I do this with Powershell?
I know that Exiftool can do this by using: exiftool -v -ext jpg -ext mp4 "-Directory<CreateDate" -d %Y\%m\%d\ .
But this only works for image and video files.
Any idea how to solve this for all file types?
Thanks.