ListBox.DeleteItem("ListBox1", LB_ALLITEMS); tFiles = File.Find(_SourceFolder.."\\AutoPlay\\Docs\\Radio-Checkbox", "*.apz", false, false, nil); if tFiles then -- Traverse the table containing the selected file paths for nIndex, sFilePath in tFiles do -- Assign the desired text and data to variables sData = sFilePath; -- Set sText to the filename (without extension) using String.SplitPath sText = String.SplitPath(sFilePath).Filename; ListBox.AddItem("ListBox1", "*"..sText, sData); end end