Windows batch file to delete .svn files and folders

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

    To delete all svn files on windows

    for /d /r . %d in (.svn) do @if exist "%d" rd /s/q "%d"
    

    .svn is the folder name

提交回复
热议问题