>Hi All!
>
>My co-worker is trying to display a progress bar when a copyfile method in the kernel32.dll is called. The process take to much time and we need some kind of progress indicator to the user. Anybody have some ideas how he can acomplish this?
>
>Thank Again
In addition to Sergey's response there's also the Shell.Application object. Here's a code snippet that shows how easy it is to use.
#DEFINE FOF_NOCONFORMMKDIR = 0x200
#DEFINE FOF_NOCONFIRMATION = 0x010
#DEFINE FOF_SIMPLEPROGRESS = 0x100
oShell = CreateObject("Shell.Application")
oFolder = oShell.Namespace(lctarget)
oFolder.CopyHere(lcSource, FOF_NOCONFORMMKDIR + FOF_NOCONFIRMATION + FOF_SIMPLEPROGRESS)
That should get you started.
George
Ubi caritas et amor, deus ibi est