Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seeking Alternative to COPY FILE Command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00444304
Message ID:
01185119
Vues:
22
This Shell32 routine copies all files between the source and destination directories:
LOCAL oShell, oSrcFolder, oDstFolder

oShell = CREATEOBJECT("Shell.Application")
oSrcFolder = oShell.NameSpace("c:\temp1")
oDstFolder = oShell.NameSpace("c:\temp")

IF VARTYPE(oDstFolder)="O" AND VARTYPE(oSrcFolder.Items)="O"
        oDstFolder.CopyHere(oSrcFolder.Items)
ENDIF
The table may stay open in the source directory, it is still being copied. Though need to test it in all modes; for example, how does it work when the source table has uncofirmed changes.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform