C #. BAT file clear the project directory

Source: Internet
Author: User
Tags exit in
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.