Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename a directory!
Message
From
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:
01058900
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform