Olaf's original suggestion (in the second post in this thread) was a good one. But don't discount my idea of using the DOS RENAME command. It has the benefit of being very simple.
On reflection, I think I might choose a slightly different approach to automating the solution:
1. Get the directory names into a text file (as before).
2. Open the file in a decent text editor (the VFP editor will be fine).
3. Using the editor's find/replace or macro features, convert each line of text from a plain directory name to a DOS RENAME command (my favourite way of doing that would be with VFP's macro feature, but that's only one of many approaches).
4. Rename the file so that it has a BAT extension.
5. Run it from the command prompt as a batch file.
This might not be to everyone's taste, but it would work, and would be fairly easy.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads