I am trying to list some of my mp3 files with Powershell.
I have tried
ls C:\test | Format-List -Property Name,Length
which gives me
Name : testfile.mp3
Length : 10058533
The length is the size of the file which I don't care for at this moment.
Knowing that I can choose duration in File Explorer for a column heading I thought to re-write the above as
ls C:\test | Format-List -Property Name,Duration
but what I get is
Name : testfile.mp3
How can I tell Powershell to return the minutes and seconds for the duration? Or even just the seconds. Thanks in advance