Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming a directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00395201
Message ID:
00395750
Vues:
10
>How can I rename a directory from inside VFP6? I suppose is via the API but don't know how to do it.

Try using rename() from the C++ runtime:

Declare Integer rename in MSVCRT.dll As _rename String @oldname, String @newname
md c:\foo
lsOld = "c:\foo"
lsNew = "c:\newfoo"
_rename(@lsOld, @lsNew)

Note that you have to alias the function name because VFP already has a RENAME command.
Mike Stewart
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform