Hi All,
I've done some searches but couldn't find anything. Here's what I'm trying to do:
- I want to recursively display all the files (pattern, for ex. *.txt is user-selected) for a given directory.
- The files are displayed in a ListBox but I only want to display the files' names, no directories.
- The user can single- or multiple-select the file(s) & then click the Copy button.
- The program should then copy all the selected file(s) to the destination directory.
Since I'm only displaying the files' names, I of course will run into the file-not-found problem.
How do you think I can pass the files' directory name sto the copy function without displaying them in the ListBox?
Attached is the zipped file.
Any help is greatly appreciated.
Thanks,
MB
I've done some searches but couldn't find anything. Here's what I'm trying to do:
- I want to recursively display all the files (pattern, for ex. *.txt is user-selected) for a given directory.
- The files are displayed in a ListBox but I only want to display the files' names, no directories.
- The user can single- or multiple-select the file(s) & then click the Copy button.
- The program should then copy all the selected file(s) to the destination directory.
Since I'm only displaying the files' names, I of course will run into the file-not-found problem.
How do you think I can pass the files' directory name sto the copy function without displaying them in the ListBox?
Attached is the zipped file.
Any help is greatly appreciated.
Thanks,
MB
Attachments
Last edited by a moderator: