Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
button

VB
Dim files() As String
files = Directory.GetFiles("C:\", "*.mp3")

Dim file As String
For Each file In files
ListBox1.Items.Add(Path.GetFileName(file))
Next


C#
output :
001.mp3
stand.mp3
mp3.mp3 ....


diff mp3 from different folder , want to copy them from ListBox to another folder.

how to to save all item wth Only filenam to another folder.
Posted
Updated 26-Oct-13 20:17pm
v3
Comments
Sergey Alexandrovich Kryukov 27-Oct-13 0:28am    
No, files come with full file names. So, what's the problem? http://whathaveyoutried.com so far?
—SA
Zoltán Zörgő 27-Oct-13 2:47am    
A listbox only holds strings, you can not copy anything to/from it.
Ashok19r91d 28-Oct-13 5:39am    
What's your exact problem? Want to copy files or Filename?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900