The easiest way to delete the. svn folder in Windows
The content of the SVN version. bat File deleted from the batch file is as follows:
@ Echo off echo ************************************ ********************** echo clears SVN version information *********** **************************************** ********: start: startup process, switch Directory: set pwd = % cd %: cd % 1 echo working directory: & chdir: input: Get input, process data according to input: set source =: set/p source = confirm to be clear under the current directory. svn information? [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: in the main processing process, execute 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 clear operation canceled" goto end:: Exit program cd "% pwd %" pause