Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change directory name in VFP5.0a ?
Message
 
À
02/03/1998 09:57:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00082035
Message ID:
00082072
Vues:
18
>You could also use the "ren" command.
>
>! ren olddir newdir
>* If anyone of these is a long file name having spaces then use quotes
>! ren "\My long filename directory name" "My other LFN dir"
>
>cetin

Cetin,

I don't think that you can change the names of directories with long names using the DOS rename command. At least I haven't been able to do it. There's another thing about using the MoveFile call, you can tell whether or not the call succeeded by checking the return value. If it's not zero, then the change was successful, otherwise it failed. Using RUN, you have to check for the existence of the directory after executing the run. Fainally, you have to deal with the DOS window. A minor point to be sure, but there nevertheless.
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