Windows 10: how to make a list of media files and their durations

Discus and support how to make a list of media files and their durations in Windows 10 Ask Insider to solve the problem; [ATTACH] I have many media files (audio mp3 - mp4) I want to create a list that have file names and their durations and the total.... Discussion in 'Windows 10 Ask Insider' started by /u/zoexzin, Oct 10, 2020.

  1. how to make a list of media files and their durations

    /u/zoexzin, Oct 10, 2020
    #1

  2. c# subtract elements of a list

    This.
    Create EventInfo class with DateTime EventStart, DateTime EventEnd, and a TimeSpan property Duration (with only getter) that gets EventEnd-EventStart.
    Then you keep the list of EventInfo instances.
     
    BiggieShady, Oct 10, 2020
    #2
  3. slozomby Win User
    Recent File List

    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file1

    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file2
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file3
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file4
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file5
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file6
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file7
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file8
    Remove-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List" -name file9
    ...

    you get the idea. ( too lazy to put it in a for loop and test it.

    or just open regedit and remove all the fileX from that key.
     
    slozomby, Oct 10, 2020
    #3
  4. how to make a list of media files and their durations

    c# subtract elements of a list

    I would put the start and finish times in a custom class then add an instance of the class to a List<class>. That way you only have one list and that one list contains everything relevant. If you want to go a step further, I would add an accessor called Duration that returns Finish - Start. Put it all together, you could do something like list[9].Duration to get how long task 9 took. Ideally, this custom class would contain everything relevant to the job (even the job itself) so this all happens in isolated code.

    To remove elements from a list, use .Remove(index) or .Remove(copy of instance). If it is in a for loop, make sure to run the loop in reverse (i-1) otherwise it will freak out.

    If this isn't homework and the code is something that can be made public, I could take a look and/or optimize it for you so you can see a working example of what I'm talking about.
     
    FordGT90Concept, Oct 10, 2020
    #4
Thema:

how to make a list of media files and their durations

Loading...
  1. how to make a list of media files and their durations - Similar Threads - list media files

  2. How to clear a deleted file name that is stuck in Media Player 11 recent files list?

    in Windows 10 Gaming
    How to clear a deleted file name that is stuck in Media Player 11 recent files list?: I have a few already watched then deleted file names that are stuck in my Media Player recent list when I right click the Media Player in the Task Bar. I've clicked them and then when the files aren't found, I selected delete when prompted, but they do not delete....
  3. How to clear a deleted file name that is stuck in Media Player 11 recent files list?

    in Windows 10 Software and Apps
    How to clear a deleted file name that is stuck in Media Player 11 recent files list?: I have a few already watched then deleted file names that are stuck in my Media Player recent list when I right click the Media Player in the Task Bar. I've clicked them and then when the files aren't found, I selected delete when prompted, but they do not delete....
  4. How to change the duration of an image in Clipchamp?

    in Windows 10 Software and Apps
    How to change the duration of an image in Clipchamp?: so it does not show the sidebars to extend the image we add on the timeline and this is very annoying. i had to download a different editing tool https://answers.microsoft.com/en-us/windows/forum/all/how-to-change-the-duration-of-an-image-in/81d2b465-d811-4de6-bd40-db89a162aa09
  5. How do I make File Explorer produce a list of files

    in Windows 10 Network and Sharing
    How do I make File Explorer produce a list of files: I bought a new computer with Windows 10 pre-installed but it does not produce the same file structure is in my old copy of Windows 10 in the other computer. The old version produces a list of files underneath each file as I click on it. That is, when I click on a file it...
  6. How to make list of files in a folder?

    in Windows 10 Support
    How to make list of files in a folder?: Can someone please tell me How to make list of files in a folder using cmd? Thanks. 163333
  7. Glitch duration

    in Windows 10 Software and Apps
    Glitch duration: In the Movies & TV app, look: [ATTACH] The seek bar shows 0:00:00, but the duration shows 0:00:06. No, it's not 6 seconds, it's 2 seconds!! https://answers.microsoft.com/en-us/windows/forum/all/glitch-duration/b08240a3-52e5-4b61-9fab-01bbe59c92b8
  8. File open duration

    in Windows 10 Network and Sharing
    File open duration: Is there a way to extend the time that a file remains open when it is inactive? https://answers.microsoft.com/en-us/windows/forum/all/file-open-duration/c2d8841f-e5b7-4f38-b1a6-314064682f7b"
  9. Making "list" default view for file explorer

    in Windows 10 Support
    Making "list" default view for file explorer: How can I make the file explorer always use "list" view when opening files and folders? Thanks 65271
  10. Make list of files in a folder

    in Windows 10 Support
    Make list of files in a folder: Hello,I have several hundreds video clips (mp4), arranged in several folders.Wanted to make a list of them, not to print, just a list in the computer.On some site I found this: To write in the address line of the browser the full path to thatfolder and Enter, the list was...