Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00271750
Message ID:
00271757
Vues:
25
>Is the a vfp command or utitiity that can move files from one folder to another? Help Appreciated.
>
Hi Nick,

The FileSystemObject's MoveFile method can do this, as can an API call.
* FileSystemObject
oFS = CREATEOBJECT('Scripting.FileSystemObject')
oFS.MoveFile(lcSourceFile, lcDestination)
* API Call
DECLARE INTEGER MoveFile IN Win32API;
  STRING @lpExistingFileName,;
  STRING @lpNewFileName
llsuccess = (MoveFile(@lcSourceFile, @lcDestination) # 0)
hth,
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