Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems using CopyHere...
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00354242
Message ID:
00354259
Views:
17
>I'm trying to use this code to copy files from one location to another:
>oShell = CREATEOBJECT('Shell.Application')
>oFolder = oShell.Namespace(lcdir)
>oFolder.CopyHere(lcfiles)
>
>I'm trying to suppress the filenames and, if possible, set my own message. The syntax for CopyHere is "object.CopyHere vItem, [vOptions]" and there is the constant FOF_SIMPLEPROGRESS to hide filenames, but I'm having problems understanding how to use the vOptions parameter.
>
>Any help would be appreciated.

It's simply an additional parameter:

oFolder.CopyHere(lcfiles, FOF_SIMPLEPROGRESS)

You may combine options by adding them together. Or am I misunderstanding?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform