View Full Version : Help
Josué Alba
02-26-2005, 09:28 AM
Hi somebody know How can I get All the files with the same ext from a folder (like all the jpg's)?
TJ_Tigger
02-26-2005, 09:42 AM
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.
Josué Alba
02-26-2005, 09:47 AM
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)
TJ_Tigger
02-26-2005, 09:52 AM
--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
Is this what you are looking for?
Tigg
Josué Alba
02-26-2005, 10:39 AM
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
eric_darling
02-26-2005, 11:29 AM
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!
Corey
02-26-2005, 12:25 PM
I second that hoo hoo! :yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.