Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename a directory!
Message
De
13/10/2005 17:38:41
 
 
À
13/01/2005 11:34:46
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:
01058900
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform