|
-
June 21st, 1999, 04:34 PM
#1
copy *.*
Does anyone know how I could achieve something like the DOS command "copy *.*" in c++ code? I'm simply trying to copy the contents of on directory to another. Thanks in advance for any advice/help.
Thranil
-
June 21st, 1999, 05:23 PM
#2
Re: copy *.*
You need to retrieve all the files in the directory, which CFileFind can help you do. Then you need to call CopyFile to copy each file one at a time.
Good luck!
-
June 23rd, 1999, 03:52 AM
#3
Re: copy *.*
Why don't you use SHFileOperation(). This is a nice function to copy, move, delete files and dirs.
Regards,
Erich
_____________________________________________________________________
anti-spam: remove dashes in mail-adress to send mail
Erich Hermann
ETAS GmbH & Co. KG e-mail: [email protected]
Borsigstr. 10 Phone: (+49)711-89661-144
D-70469 Stuttgart Fax: (+49)711-89661-107
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|