
Quote from impactband4u on November 11, 2024, 11:21 amHi guys, how do i list all my .mp3 files in folders and sub-folders from my hdd to listbox?
Thanks in advance : )
Hi guys, how do i list all my .mp3 files in folders and sub-folders from my hdd to listbox?
Thanks in advance : )

Quote from DaviddeArgentina on November 11, 2024, 8:10 pmchange mask as you need
FileList "!C:\Users\USER\Music\*.mp3" "Files+Folders" "[lista]"
My 0.01
change mask as you need
FileList "!C:\Users\USER\Music\*.mp3" "Files+Folders" "[lista]"
My 0.01

Quote from impactband4u on November 11, 2024, 11:16 pm@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 : )
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 : )
Quote from Gaev on November 12, 2024, 4:30 pm@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
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
Quote from mishem on November 13, 2024, 12:48 pm@impactband4u
Required
VisualneoWin
zmFunctions pluginIt 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. ;)
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. ;)
Quote from mishem on November 13, 2024, 1:01 pmQuote from Gaev on November 12, 2024, 4:30 pmb) 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.:)
Quote from Gaev on November 12, 2024, 4:30 pmb) 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.
:)
Quote from Gaev on November 13, 2024, 4:25 pm@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 mlsOn 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.
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 mishem on November 13, 2024, 5:03 pmQuote from Gaev on November 13, 2024, 4:25 pmdid 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 pmfound 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.
Quote from Gaev on November 13, 2024, 4:25 pmdid 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 pmfound 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.
Quote from mishem on November 13, 2024, 5:31 pm@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.
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.

Quote from impactband4u on November 14, 2024, 9:32 pmThank you all for your feedback. I appreciate it : )
Thank you all for your feedback. I appreciate it : )