Batch delete .svn files under Windows

  

It is understood that svn (subversion) is a version management tool that has emerged in recent years and is the successor of cvs. Currently, most open source software uses svn as code version management software. So how do you easily delete the .svn files in Windows in batches?

When using the SVN tool, some files with the suffix "svn" are generated, and each folder has it. A lot of it.

If you want to delete the .svn folder under Windows, it is most troublesome to manually delete the channel, because there are such files under each folder. —— Fortunately, I saw a good way for aw students today:

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]< Br>

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

Thus, when you need to delete the .svn file, right click to see "Delete SVN Folders" After execution, you can quickly delete all .svn files in this folder.

Copyright © Windows knowledge All Rights Reserved