Reading the code was kind of difficult given the lack of code tags so I'll just take some wild guesses. First, you won't be able to change the name of the directory if it is being used. For instance, if you have a dos window opened and you are CD'd to that directory. You may even need to use find() with the no_chdir option.
Other than that, does your user have permissions to change the directory name? Have you tried it as Administrator? I have to confess that I know pretty much nothing about permissions on Windows.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Can't rename all directories but only some
by sauoq
in thread Can't rename all directories but only some
by kirk123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |