Another method is to write a BAT file for cleanup, which is very convenient. The following is a good method for self-written verification. The content of the BAT file is as follows: ECHO is clearing unnecessary files in the vs2010 project. Please ensure that this file is placed in the project directory and close vs2010echo to start cleaning. Please wait ...... echo clears the SDF file del/Q/A/f/S *. sdfecho clears the ipch file del/Q/A/f/s ipch \*. * echo clears the debug file del/Q/A/f/s debug \*. objdel/Q/A/f/s debug \*. tlogdel/Q/A/f/s debug \*. logdel/Q/A/f/s debug \*. idbdel/Q/A/f/s debug \*. pdbdel/Q/A/f/s debug \*. ilkdel/Q/A/f/s debug \*. pchdel/Q/A/f/s debug \*. bscdel/Q/A/f/s debug \*. sbrecho clear the release file del/Q// F/S release \*. objdel/Q/A/f/S release \*. tlogdel/Q/A/f/S release \*. logdel/Q/A/f/S release \*. idbdel/Q/A/f/S release \*. pdbdel/Q/A/f/S release \*. ilkdel/Q/A/f/S release \*. pchecho clears the temp file del/Q/A/f/s Temp \*. * The ECHO file has been cleared! This program will exit in 3 seconds! Now the countdown ......... @ echo off echo wscript. sleep 300> % Temp %. \ TMP $. vbs set/A I = 3: timeout if % I % = 0 goto next setlocal set/A I = % I %-1 echo countdown ...... % I % cscript // nologo % Temp %. \ TMP $. vbs goto timeout goto end: Next CLS & Echo. Note that this method is completely deleted and will not be found in the recycle bin.
Modified Version:
Put the bat file in the bin directory.
ECHO is clearing unnecessary files in vs project. Echo. Please make sure this file is placed in the project directory and close vs2010echo to start cleaning. Please wait ...... @ ECHO is clearing the svn file. Please wait ...... @ REM loop delete all SVN files in the current directory and subdirectory @ REM for/R. % A in (.) do @ if exist "% \. SVN "@ echo" % \. SVN "@ for/R. % A in (.) do @ if exist "% \. SVN "RD/S/Q" % \. SVN "@ ECHO: cleaned up !!! Echo clears the SDF file del/Q/A/f/S *. sdfecho clears the ipch file del/Q/A/f/s ipch \*. * echo clears the log file rmdir/S/q debug \ logrmdir/S/Q release \ logecho clears the cfg file del/Q/A/F debug \*. xmldel/Q/A/F release \*. xmlecho clears the debug file del/Q/A/f/s debug \*. objdel/Q/A/f/s debug \*. tlogdel/Q/A/f/s debug \*. logdel/Q/A/f/s debug \*. idbdel/Q/A/f/s debug \*. pdbdel/Q/A/f/s debug \*. ilkdel/Q/A/f/s debug \*. pchdel/Q/A/f/s debug \*. bscdel/Q/A/f/s Debu G \*. sbrdel/Q/A/f/s debug \ * .vshost.exe del/Q/A/f/s debug \ * .vshost.exe. configecho clears the release file del/Q/A/f/S release \*. objdel/Q/A/f/S release \*. tlogdel/Q/A/f/S release \*. logdel/Q/A/f/S release \*. idbdel/Q/A/f/S release \*. pdbdel/Q/A/f/S release \*. ilkdel/Q/A/f/S release \*. pchdel/Q/A/f/S release \ * .vshost.exe del/Q/A/f/S release \ * .vshost.exe. configecho clears the temp file del/Q/A/f/s Temp \*. * The ECHO file has been cleared! This program will exit in 3 seconds! Now the countdown ......... @ echo off echo wscript. sleep 300> % Temp %. \ TMP $. vbs set/A I = 3: timeout if % I % = 0 goto next setlocal set/A I = % I %-1 echo countdown ...... % I % cscript // nologo % Temp %. \ TMP $. vbs goto timeout goto end: Next CLS & Echo.
C #. BAT file clear the project directory