Windows batch file to delete .svn files and folders

前端 未结 8 1377
一生所求
一生所求 2021-01-30 09:16

In order to delete all \".svn\" files/folders/subfolders in \"myfolder\" I use this simple line in a batch file:

FOR /R myfolder %%X IN (.svn) DO (RD /S /Q \"%%X         


        
相关标签:
8条回答
  • 2021-01-30 10:09

    you can try

    FOR /R myfolder %%X IN (.svn) DO (RD /S /Q "%%X" 2>nul)
    
    0 讨论(0)
  • 2021-01-30 10:11

    Something like that using find :

    rm -rf `find . -name ".svn" -type d`
    

    Edit:

    I know this is for linux (I read bash instead of batch). I'm leaving it here to help Linux users that would randomly end-up here :)

    0 讨论(0)
提交回复
热议问题