Hey everyone, I'm back with another question! I'm trying to find a way to extract not only the names of all the files in a folder but also some other properties like authors, titles, and dates using PowerShell. I've managed to get the file dates and lengths, but I'm struggling to figure out how to retrieve metadata like titles and authors. There are a lot of software options for this, but it seems odd to me since it feels like something you should be able to do with PowerShell on your own. I'd love any guidance or tips you might have. To give some context, I'm trying to organize my music collection where the titles are in their original language but the song names are poorly translated. I want to create a list of the original titles so I can retranslate them easily.
3 Answers
I mentioned some ways to read file metadata using Windows Explorer and the MediaInfo tool. Those methods are still valid and can give you what you need. Just let me know if you want specific links to those resources!
To get the file title and author, you should use the Shell COM object in PowerShell. There are some useful posts out there that cover how to do this for MP3 files and images. You might want to look up PowerShell Shell COM objects, specifically using `New-Object -ComObject Shell.Application`.
I think you’re looking for metadata info! If you want to read and edit the metadata of MP3 files, check out this guide I found. It covers how to do it using just PowerShell and Excel. It might help you get the titles and other info you're looking for. Good luck!
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically