Copying files/directories
-
I was wondering what the quickest method to copy a folder and all of its sub-directories and files to another location would be. I am currently using a recursive function to find all files in all subdirectories then manually making the directories and copying each file over to the new location. Is there a way to copy all of this at once (like in windows when its shows the files flying from one folder to another and it makes all subdirectories in the new location)??? Any suggestions would be appreciated! Thanks
-
I was wondering what the quickest method to copy a folder and all of its sub-directories and files to another location would be. I am currently using a recursive function to find all files in all subdirectories then manually making the directories and copying each file over to the new location. Is there a way to copy all of this at once (like in windows when its shows the files flying from one folder to another and it makes all subdirectories in the new location)??? Any suggestions would be appreciated! Thanks
SHFileOperation() is the one you are looking for! It does have the progress window if you want to use. It does do copy recursive sub-directories. This does copy/rename/delete too...;) all in one package I dont think this is the fastest way but application level safest way as its a high level api. Thanks, Ramu