Hi somebody know How can I get All the files with the same ext from a folder (like all the jpg's)?
Professional Software Development Tools
Hi somebody know How can I get All the files with the same ext from a folder (like all the jpg's)?
What do you want to do with all the files? You can use the File.Find to build a table of all files in a directory with a particular extension.
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
I want them to be shown on a list. And there select some (with a preview option) like a cathalog but they are not images (to use the plugin)
Is this what you are looking for?Code:--Find all ogg files using recurse in the sourcefolder tbOggs = File.Find( _SourceFolder, "*.ogg", true, false, nil); --If files were found then do the following if tbOggs then --for each item perform the following actions for i,v in tbOggs do --Split the path to find the filename tbSplitPath = String.SplitPath(v); --add to listbox the filename as text and full path as data ListBox.AddItem("ListBox1", tbSplitPath.Filename, v); end end
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
haha yes that's exactly was I was looking but I had made it alreay with the file.find as you suggest. Any way thanks Tigger you know I like you so much
Tigger's a wonderful thing.
You know, his bottom is made out of springs, they say. But alas, he's the only one. Heeeeeee's the only one! Hoo hoo hoo hoooo!
I second that hoo hoo!![]()