Hi,
How do I get the full filepaths of files in a specified folder and put them into a textbox or listbox?
Printable View
Hi,
How do I get the full filepaths of files in a specified folder and put them into a textbox or listbox?
you could use the dir() function on the folder and then add them with the files path!!!!
any examples?
VB Code:
Dim strPath as String Dim strFile as String strPath = "C:\Windows\" strFile = Dir$(strPath) 'Get the first file Do While Len(strFile) > 0 List1.AddItem strPath & strFile strFile = Dir$ 'Get the next file Loop