Windows batch file to delete .svn files and folders

前端 未结 8 1380
一生所求
一生所求 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: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 :)

提交回复
热议问题