Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress Bar in the COPYFILE (KERNEL32.DLL)
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00762948
Message ID:
00762975
Views:
22
>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
* lcSource and lcTarget are the source and target
* folder
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
Previous
Reply
Map
View

Click here to load this message in the networking platform