当项目和版本库有联系时每个目录下都会有.svn批量删除时可将下列代码复制
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellDeleteSVN] @="Delete SVN Folders" [HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellDeleteSVNcommand] @="cmd.exe /c "TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r "%1" %%f IN (.svn) DO RD /s /q "%%f" Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellDeleteSVN] @="Delete SVN Folders" [HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellDeleteSVNcommand] @="cmd.exe /c "TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r "%1" %%f IN (.svn) DO RD /s /q "%%f"
保存到记事本中将文件后缀改为.reg 双击会将文件导入注册表。右键点击会出现 Delete SVN Folders 即可批量删除.svn文件
如果不想要右键出现 Delete SVN Folders 打开注册表(windows+R 输入regedit) 将[HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellDeleteSVN]删除即可。
在Dos窗口中运行如下命令:
for /r 项目的路径 %i in (.svn) do rd /s /q %i