Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename a directory!
Message
From
14/10/2005 06:37:02
 
 
To
13/10/2005 17:38:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00976806
Message ID:
01059069
Views:
20
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform