Still trying to learn Powershell and the enjoyment of getting a script working that remove a - from thousands of files was great the other day.
So then thought I could use Powershell on my disorganised photos.
I’ve manged, in my test to look in a specific directory and all its child directories for all files with extension *.jpg
Worked nice. They all moved to the correct folder. Then I messed the command up with the ,
Get-ChildItem -path c:\testing\*.jpg,*.png
Not realising after that command it was now going to scan the whole laptop and move the *.png files and not just from the testing folder.
Anyway. What I’m now trying to do is appearing complicated. Like my disorganised photos collection, my dad also has the same. But in some folders we’ll have
Etc. I’ve now decided I want to keep the folder structure. So before I was going to move all the photos to one directory. I now want to go into the March folder. Check all files that are in there and move all *.jpg files to another folder called March and then any videos that are in that directory, move them to a new folder in March called videos.
This is where I got lost. Searching for all *.jpg files and moving them seems easier but keeping the folder structure seems like it might be a lot more difficult.
Any ideas would be great.