The easiest way to delete the .svn folder under Windows

  
        

The batch file deletes the SVN version information. The contents of the .bat file are as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 @echo off echo ***************************************** ****************** echo Clear SVN version information echo ************************** ********************************* :start::Startup process, switch directory:set pwd=%cd% :cd %1 echo The working directory is: & chdir :input::Get input, process according to input set source=: set /p source=determine Is the .svn information in the current directory clear? [Y/N/Q] set "source=%source:"=%" if "%source%"=="y" goto clean if "%source%"=="Y" Goto clean if "%source%"=="n" goto noclean if "%source%"=="N" goto noclean if "%source%"=="q" goto End if "%source%"=="Q" goto end goto input :clean ::main process, perform cleanup @echo on @for /d /r %%c in (.svn) do @if Exist %%c ( rd /s /q %%c & echo delete directory %%c) @echo off echo "svn information in the current directory has been cleared" goto end :noclean::branch process, cancel cleanup Echo "svn information clear operation has been canceled" goto end :end :: exit program Cd "%pwd%" pause

Copyright © Windows knowledge All Rights Reserved