First taste batch processing-Batch delete svn mark this program is used to delete the subdirectory named. svn under the specified directory in the loop, that is, delete svn information. You can copy the above Code to the wendows text file and modify cleanSvn. bat, put the Java code www.2cto.com @ echo off: start: startup process under the svn project. Switch the directory set pwd = % cd % 1 echo to the following directory: & chdir: input: Get the input. process it according to the input. set source =: set/p source = Are you sure you want to know the svn information in the current directory? [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 www.2cto.com: 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