Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems using CopyHere...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00354242
Message ID:
00354259
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform