View Full Version : List files on tree object
dorkauf89
03-11-2008, 04:11 PM
Hi... I want to list all the files located in a folder on a tree object. It will find all the files in a folder and then list them on a tree object... I don't know how and I tryed with no luck. THANKS
RizlaUK
03-11-2008, 04:34 PM
heres a example that will get you started
http://www.indigorose.com/forums/showthread.php?t=12941
DaSoulRed
03-12-2008, 10:53 AM
heres a example that will get you started
http://www.indigorose.com/forums/showthread.php?t=12941
Did u check the PM i send you, or u did not, use the PM off the forum and only see the post at MAIN TOPICS
can u check them and tell me about it i just send u a few lines.
TimeSurfer
03-12-2008, 03:08 PM
heres a global function to do what your wanting, ive customized it a bit for my own needs but you should still get the just of how to do it.
function GetMP3Files()
folderbrowse = Dialog.FolderBrowse("Please select a folder:", _SourceDrive);
if (folderbrowse ~= "CANCEL") then
x = 1
INIFile.SetValue("AutoPlay\\Docs\\ini\\conf.ini", "MP3", "Directory", folderbrowse);
MP3 = File.Find(folderbrowse, "*.mp3", true, false, ShowSearchProgress, nil);
if MP3 then
for index, path in MP3 do
MP3path = path
TextFile.WriteFromString("AutoPlay\\Docs\\playlists\\default.dlr", MP3path.."\r\n", true);
end
for i,v in MP3 do
tbSplit = String.SplitPath(v);
name = tbSplit.Filename
tblNodeData = {};
tblNodeData.Text = name;
tblNodeData.Data = v;
Tree.InsertNode("Tree1", "3", tblNodeData);
end
end
end
end
RizlaUK
03-12-2008, 03:08 PM
Did u check the PM i send you, or u did not, use the PM off the forum and only see the post at MAIN TOPICS
can u check them and tell me about it i just send u a few lines.
yeah, i got your message and checked the post, someone was already helping you so i left it,
the xml file, i must have made a typo, i'll check it when i get a min but its not needed anyway
sorry for the delay, iv been real busy
DaSoulRed
03-12-2008, 03:12 PM
yeah, i got your message and checked the post, someone was already helping you so i left it,
the xml file, i must have made a typo, i'll check it when i get a min but its not needed anyway
sorry for the delay, iv been real busy
Just get it done, thanks for the lines, i all most there i will show my project when it is finish.
See you.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.