Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 264425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:41:04+00:00 2026-05-11T22:41:04+00:00

How can I rename all hidden directories under the current directory in DOS? I’ve

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:41:04+00:00Added an answer on May 11, 2026 at 10:41 pm

    The following batch file will do the trick, at least on Windows which I hope you are using (no luck in DOS here):

    @echo off
    call :recurse .
    goto :eof
    
    :recurse
    for /d %%d in (*) do (
        pushd %%d
        attrib -H .svn >nul 2>&1
        ren .svn _svn >nul 2>&1
        attrib +H _svn >nul 2>&1
        call :recurse
        popd
    )
    goto :eof
    

    The problem is that ren refuses to rename hidden directories. And for /R seemingly 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 .svn folder, rename it, and hide the file again.

    Due to re-setting the hidden flag and for /D never returning hidden directories this also has the nice benefit of not attempting to enter the .svn or _svn directories.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can somebody tell me one command which can rename all the files under a
Given a zipfile with an unknown directory, how can I rename or move that
Is there an automatic way I can use to rename a pylons controller? If
Possible Duplicate: Rename Oracle Table or View I know you can use ALTER TABLE
I remember in SVN, I can rename a file from foo.txt to foo2.txt and
There are many files and names like *.txt ; how can I rename all
I am attempting to rename all directories and files to uppercase with a shell
I would like to batch copy and rename all files from a directory, recursively.
Under linux, you can rename a file with overwrite. For example, rename -f file_a
Is there a shortcut in Shell/Bash that can rename all the files in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.