Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename a directory!
Message
De
14/10/2005 06:37:02
 
 
À
13/10/2005 17:38:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00976806
Message ID:
01059069
Vues:
25
Hi

Should your name be Art Van Winkle? You're replying on a thread from way back in January! :-)


>You can always roll your own by doing the following:
>
>- MKDIR [new (target) directory]
>
>- ADIR() the files in the old (source) directory
>
>- loop through those files and run the RENAME command on each file to move them to the new (target) directory
>
>- RMDIR [old (source) directory]
>
>The only issue would be if the old (source) directory contains subdirectories itself (in that case, you would need to recurse through all subdirectories to get to all the files).
>
>Enjoy!
>
>Art Bergquist
>Microsoft Certified Professional
>abergquist@visionpace.com
>
>Visionpace
>Software Development In Pace With Your Vision
>Microsoft Partner
>
>http://www.visionpace.com
>http://www.visionpace.com/vmpsite
>http://vmpdiscussion.visionpace.com/
>http://www.foxcentral.net
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform