Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename a file...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00661033
Message ID:
00661041
Vues:
25
>VFP give us the commands MD, CD, Copy file...
>Is there a comand to do the rename?
>
>How can I do a rename of a file name?

Don't know if there is a rename file command .....

But you can do this ...
*!* Rename file x.txt to y.prg
COPY FILE x.txt TO y.prg

IF (FILE("y.prg"))
  DELETE FILE x.txt
ELSE
  WAIT WINDOW "Rename file failed...." NOWAIT
ENDIF
HTH

Alonso
Like Frank said: "I did it... MY WAY!"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform