Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename Directories - How?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00749000
Message ID:
00749093
Vues:
22
Thank you for sharing this approach!

>DECLARE INTEGER GetLastError IN kernel32
>
>DECLARE INTEGER MoveFile IN kernel32;
> STRING lpExistingFileName, STRING lpNewFileName
>
>IF MoveFile('d:\mydir', 'd:\yourdir') = 0
>* 2 = ERROR_FILE_NOT_FOUND
>* other errors are possible
> ? 'Error code:', GetLastError()
>ELSE
>* renamed successfully
>ENDIF
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform