Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP code to move file
Message
 
À
10/08/2011 07:30:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01520576
Message ID:
01520582
Vues:
94
This message has been marked as a message which has helped to the initial question of the thread.
>is there anwindows API call to move a file from folder 1 to folder 2 without !copy and !del
>
>thansk
>
>Peter


DECLARE INTEGER MoveFile IN Win32API ;
STRING @MyFileorFolderNameNow, ;
STRING @TheNewNameIWant

CD C:\
MD FOO
IF MoveFile('FOO','BAR') > 0
* it worked
ELSE
* smoke
ENDIF
? DIRECTORY('BAR')
--------------------------------------------------------------------------------
Regards,
Peter J. Kane



Pete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform