Click to See Complete Forum and Search --> : Windows-like copy files


Patbcn
February 20th, 2003, 11:14 AM
Hi!

I just want to copy a file and have Windows to display the "Copying..." dialog with the progress bar and so while the file is being copied.
I winder if there is some API or so which allows me to do that automatically...

Thanks,
Toni

mwilliamson
February 20th, 2003, 03:17 PM
There isn't one are far as I know, but it shouldn't be too hard to make one. Maybe you could even make yours work properly :)

mwilliamson
February 20th, 2003, 03:17 PM
You can use the call back ability of CopyFileEx to determine speed.

ryan crey
February 20th, 2003, 03:31 PM
lookup SHFileOperation api.

Bob Davis
February 20th, 2003, 10:54 PM
SHFileOperation is the one you want. It has options to move, copy, delete, etc. on files, and you can do sets of files and directories to perform the operation on. Best of all, you get the pretty Windows "Copying..." dialog.

link to MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shfileoperation.asp)