Re: Browse for and Copying multiple files
[ Related Articles and Replies ] [ DelphiLand Discussion Forum ]
Posted by webmaster Guido
on March 27, 2002 at 17:39:53:
In Reply to: Browse for and Copying multiple files posted by Robin Shinkle on March 26, 2002 at 21:33:46:
: Help!! I am fairly new to Delphi and could use some help! I need to browse for origin and destination directories and then copy all the files in the origin directory to the destination directory. I have figured out how to copy a single file, but am unable to figure out how to browse for dir's and copy all files. Any help is greatly appreciated!! ----- Have a look in DelphiLand's section "Code Snips", under "Find files with FindFirst and FindNext". This introduces the procedure FindFiles, for filling a list with the full paths of files that are located in a given folder. It also gives the files in all of the subdirectories, but it's easy to disable this last feature. Examples: FindFiles('c:\docs', '*.doc') fills a list with all .doc files that are in c:\docs and its subdirectories. FindFiles('d:\data', '*.*') fills a list with all files that are in d:\data and its subdirectories.
Related Articles and Replies:
[ Related Articles and Replies ] [ DelphiLand Discussion Forum ]
|