I have a bunch of files (25k-ish) that mainly look like these below:
yellow_stellar_2024-03-09_08-23-45
lilyth__2024-03-09_08-23-45
rose_2024-03-09_08-23-45
I want to move them into a folder where "_2024-03-09_08-23-45" is removed. So, they will exactly look like this:
I've been looking and tried a couple of script in this forum, but since I'm no expert in this things, I can't make it work."yellow_stellar_2024-03-09_08-23-45" will be moved to "D:\dir\yellow_stellar\"
"_lilyth__2024-03-09_08-23-45" will be moved to "D:\dir\lilyth_\"
"rose_2024-03-09_08-23-45" will be moved to "D:\dir\rose\"
I do realize it is kind of tricky because many of them got an extra "_" at the end of their names, and that is why I'm here...
Any help would be appreciated, Thanks!