List all .mp3 files - Forum

Forum Navigation
You need to log in to create posts and topics.

List all .mp3 files

Hi guys, how do i list all my .mp3 files in folders and sub-folders from my hdd to listbox?

Thanks in advance : )

change mask as you need

FileList "!C:\Users\USER\Music\*.mp3" "Files+Folders" "[lista]"

My 0.01

 

luishp has reacted to this post.
luishp

@daviddeargentina

thank you, but i'm familiar with this command and it work well if you have the full path of the folder where the mp3's is located, but i need a command that when i want to search a complete hdd for mp3 files, it must search all folders and sub-folders on that hdd and list it in ListBox. Also if i search within a Folder that has 50 sub-folders, it must search only that folder and all sub-folders and list it.

Hope i explained it right  : )

@impactband4u

You might not be able to get there from here ...

a) it will take a long (very long) time to scan your entire hdd; I tried using these (DOS) commands (which process much faster than Neo script ones)...

cd c:\
dir *.pdf /b /s

... after about 30 seconds, it was still processing and I gave up.

b) not sure how many mp3 files you were expecting to be found, but most likely that number will exceed the maximum number of items you can have in a ListBox

impactband4u has reacted to this post.
impactband4u

@impactband4u

Required
VisualneoWin
zmFunctions plugin

It is better, of course, to create selected folders and search in them. Searching the entire disk will take a long time.
You can, of course, search in asynchronous mode and use a subroutine. ;)

Uploaded files:
  • You need to login to have access to uploads.
impactband4u has reacted to this post.
impactband4u
Quote from Gaev on November 12, 2024, 4:30 pm

b) not sure how many mp3 files you were expecting to be found, but most likely that number will exceed the maximum number of items you can have in a ListBox

For example, on a 50 GB C disk it found only 3 mp3 files in 14 seconds.

On D with a volume of 100 GB (65 free, t.35 GB) in 672 mls found 1939 files. All fit.
It is necessary to try. Perhaps the devil is not as terrible as he is painted.

:)

Vadim has reacted to this post.
Vadim

@mishem

For example, on a 50 GB C disk it found only 3 mp3 files in 14 seconds.
On D with a volume of 100 GB (65 free, t.35 GB) in 672 mls

On my 8 year old laptop, HD has over 900 GB ... did not think they made computers with such small HD drives.

Besides, it is not the total space but the number of file entries to check that determines time to respond.

672 ms sounds fast enough ... if this is for personal use, waiting 14 seconds is ok, but if it is for client use, it may not be (especially if they have much larger HD/files to scan).

found 1939 files. All fit.

If, as I am assuming that, the ListBox was able to show 1939 files, that is good to know.

Quote from Gaev on November 13, 2024, 4:25 pm

did not think they made computers with such small HD drives.

I have two of them. One for 160, the other for 320 GB. Ancient as a mammoth. Enough for me. They still work and that's fine.

I expressed myself incorrectly. Not disk C, partition C. In our conversation, disk, partition have the same meaning.

Quote from Gaev on November 13, 2024, 4:25 pm

found 1939 files. All fit.

If, as I am assuming that, the ListBox was able to show 1939 files, that is good to know.

Yes, I got it right. ListBox showed 1939 entries.

@gaev

I noticed another interesting thing.

I started searching on another disk in the system partition (I have two systems on different disks).

Searched for 160 seconds. Found 2 files.
Repeated search was reduced to 22 seconds. Apparently, the first search indexes files.

This plugin has the ability to asynchronously search in a separate thread. That is, you can continue working with the application (it will not be in a suspended state), and upon completion of the search, if desired, the subroutine will be executed and the result will be displayed.

Thank you all for your feedback. I appreciate it : )