One-time batch delete of .svn files under Windows

  

When using SVN tools, some files with svn as suffixes will be generated, and each folder has a large number.
If you want to delete the .svn folder under Windows, it is the most troublesome to manually delete the channel, because there are such files under each folder.

Enter the following code in Notepad and name it a file with a .reg extension:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\ Shell\\DeleteSVN] @=“Delete SVN Folders”

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\shell\\DeleteSVN\\command]

@=“cmd.exe /c \\”TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \\"%1\\" %%f IN (.svn) DO RD /s /q \\"%%f\\" \\""

In this way, when you need to delete the .svn file, you can quickly delete all .svn files in the folder by right-clicking the "Delete SVN Folders" button.


Copyright © Windows knowledge All Rights Reserved