Thranil
June 21st, 1999, 04:34 PM
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
Thranil
|
Click to See Complete Forum and Search --> : copy *.* Thranil June 21st, 1999, 04:34 PM 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 ALM June 21st, 1999, 05:23 PM 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! Erich Hermann June 23rd, 1999, 03:52 AM 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: ---Erich.Hermann@ETAS.de Borsigstr. 10 Phone: (+49)711-89661-144 D-70469 Stuttgart Fax: (+49)711-89661-107 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |