EvoTalk

27 十二月, 2007

Shell Command – Remove .svn Folder

Posted by: asd In: Code Snippet| Script| 程式設計 ()

用 svn checkout 的專案,每個目錄下帶有一份 working copy 的資料夾.svn,若要方便快速刪除它們,可將下列註冊表匯入,整合至檔案總管右鍵上。

CODE:
  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
  4. @="Delete SVN Folders"
  5.  
  6. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
  7. @="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""

出自: Jon Galloway : Shell Command - Remove SVN Folders

Tags:

Releated Posts



No Responses to "Shell Command – Remove .svn Folder"

Comment Form