How can I rename all hidden directories under the current directory in DOS? I’ve just updated Tortoise SVN to use _svn instead of .svn. I noticed that it still works if I just rename the folders.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following batch file will do the trick, at least on Windows which I hope you are using (no luck in DOS here):
The problem is that
renrefuses to rename hidden directories. Andfor /Rseemingly never really works when trying to find directories. So I am building a little recursion through the directory tree here and for each directory I am entering I clear the hidden flag from the.svnfolder, rename it, and hide the file again.Due to re-setting the hidden flag and
for /Dnever returning hidden directories this also has the nice benefit of not attempting to enter the.svnor_svndirectories.